Loading tasks/main.yaml +1 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,8 @@ # install updates - name: "install updates" tags: "update" ansible.builtin.include_tasks: "update.yaml" # initiate reboot - name: "initiate rboot" tags: "reboot" - name: "initiate reboot" ansible.builtin.include_tasks: "reboot.yaml" tasks/reboot.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ # reboot the system - name: "reboot the system" tags: "reboot" ansible.builtin.reboot: msg: "Reboot initiated by Ansible" reboot_timeout: 120 tasks/update.yaml +51 −46 Original line number Diff line number Diff line --- # install updates - name: "install updates" tags: "update" block: # install updates - debian - name: "install updates - debian" when: 'ansible_os_family == "Debian"' Loading Loading
tasks/main.yaml +1 −3 Original line number Diff line number Diff line Loading @@ -2,10 +2,8 @@ # install updates - name: "install updates" tags: "update" ansible.builtin.include_tasks: "update.yaml" # initiate reboot - name: "initiate rboot" tags: "reboot" - name: "initiate reboot" ansible.builtin.include_tasks: "reboot.yaml"
tasks/reboot.yaml +1 −0 Original line number Diff line number Diff line Loading @@ -2,6 +2,7 @@ # reboot the system - name: "reboot the system" tags: "reboot" ansible.builtin.reboot: msg: "Reboot initiated by Ansible" reboot_timeout: 120
tasks/update.yaml +51 −46 Original line number Diff line number Diff line --- # install updates - name: "install updates" tags: "update" block: # install updates - debian - name: "install updates - debian" when: 'ansible_os_family == "Debian"' Loading