Search code examples
ansiblesuse

how to upgrade SUSE form the iso file using ansible


I have the requirement to upgrade(patching) the new major version of SUSE using ansible playbook

I tried using different module of ansible but couldnt find the steps


Solution

  • I have find the solution for it:

    steps:

    1. mount nfs point ( where you will store the ISO file)
    2. Using Ansible to copy the file to target machine ( host)
    3. Create repository form that ISO in the target machine ( I have used shell module for it with zypper command)
    4. upgrade distribution with the repo in the previous step.

    thats all :)