diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-31 23:44:54 +0200 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2023-07-31 23:44:54 +0200 |
commit | 727ab17a644d52105746e18c301cf733b1181507 (patch) | |
tree | 71113c6efae3074899de965aee5489cb76362f8e /src/roles/apt | |
parent | downgrade Ansible (diff) | |
download | maintenance-727ab17a644d52105746e18c301cf733b1181507.tar.gz maintenance-727ab17a644d52105746e18c301cf733b1181507.zip |
move Ansible files to src/
Diffstat (limited to 'src/roles/apt')
-rw-r--r-- | src/roles/apt/meta/main.yml | 3 | ||||
-rw-r--r-- | src/roles/apt/tasks/main.yml | 19 |
2 files changed, 22 insertions, 0 deletions
diff --git a/src/roles/apt/meta/main.yml b/src/roles/apt/meta/main.yml new file mode 100644 index 0000000..4516fa1 --- /dev/null +++ b/src/roles/apt/meta/main.yml @@ -0,0 +1,3 @@ +dependencies: + - role: common + - {role: etckeeper, when: etc_versioned} diff --git a/src/roles/apt/tasks/main.yml b/src/roles/apt/tasks/main.yml new file mode 100644 index 0000000..297307b --- /dev/null +++ b/src/roles/apt/tasks/main.yml @@ -0,0 +1,19 @@ +- name: Upgrade packages + become: true + ansible.builtin.apt: + update_cache: true + upgrade: full + notify: reboot + +- name: Flush handlers + ansible.builtin.meta: flush_handlers + +- name: Clean up dependencies + become: true + ansible.builtin.apt: + autoremove: true + purge: true + notify: reboot + +- name: Flush handlers + ansible.builtin.meta: flush_handlers |