Changeset 16460 for main/waeup-ansible
- Timestamp:
- 15 Apr 2021, 08:17:26 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup-ansible/playbook-daily-upgrade.yml
r15572 r16460 1 # Run 'aptitude safe-upgrade' on all registered hosts.1 # Daily package maintenance 2 2 # 3 # The output of each update is appended to `myfineupdate.log`, a locally4 # created file.3 # Run 'aptitude safe-upgrade' on all registered hosts followed by 4 # apt-autoremove 5 5 # 6 6 # Run like: … … 13 13 tasks: 14 14 - name: safe-upgrade 15 ignore_errors: true15 # ignore_errors: true 16 16 register: upgrade 17 17 apt: 18 18 update_cache: yes 19 19 upgrade: safe 20 - name: "log-to myfineupdate.log" 21 local_action: shell echo "{{ inventory_hostname }}:"" ----- `date --rfc-3339=seconds`\n {{ '\n '.join(upgrade.stdout_lines) }} {{ '\n '.join(upgrade.stderr_lines) }}" >> "myfineupdate.log" 22 become: false 23 changed_when: false 20 - name: autoremove-old-pkgs 21 apt: 22 autoremove: yes 23 when: 24 upgrade.changed
Note: See TracChangeset for help on using the changeset viewer.