I am so confused
Some checks failed
Ansible Deploy / deploy (push) Failing after 57s

This commit is contained in:
2023-11-24 09:13:12 +02:00
parent eb27e46df0
commit c4bf69b679

View File

@@ -7,19 +7,22 @@
ansible_sudo_pass: "${{ ANSIBLE_SUDO_PASS }}"
tasks:
- name: Update all installed packages using APT module
apt:
name: '*'
state: latest
update_cache: yes
only_upgrade: yes
register: apt_update_status
- debug:
msg: "Pass: ${{ ANSIBLE_SUDO_PASS }}"
- name: Update all installed packages using APT module
ansible.builtin.apt:
name: '*'
state: latest
update_cache: yes
only_upgrade: yes
register: apt_update_status
- name: Remove packages not needed anymore
apt:
autoremove: yes
- name: Remove packages not needed anymore
ansible.builtin.apt:
autoremove: yes
- name: Reboot when packages were updated
reboot:
post_reboot_delay: 60
when: apt_update_status.changed
- name: Reboot when packages were updated
ansible.builtin.reboot:
post_reboot_delay: 60
when: apt_update_status.changed