diff options
author | clyhtsuriva <aimeric@adjutor.xyz> | 2025-01-31 16:56:39 +0100 |
---|---|---|
committer | clyhtsuriva <aimeric@adjutor.xyz> | 2025-01-31 16:56:39 +0100 |
commit | f1cb97161674b6be4a1b3045247f041abc9b951b (patch) | |
tree | 0626c92e62b352d7ac23856538fdcdb644150ff9 /ansible/playbooks | |
parent | 47aa1f63736103deb23bab13bc62d593902a168b (diff) |
ansible: moving ansible content from scripts repo to here
Diffstat (limited to 'ansible/playbooks')
-rw-r--r-- | ansible/playbooks/README.md | 2 | ||||
-rw-r--r-- | ansible/playbooks/apt_update.yml | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/ansible/playbooks/README.md b/ansible/playbooks/README.md index 2180df5..447ab42 100644 --- a/ansible/playbooks/README.md +++ b/ansible/playbooks/README.md @@ -3,4 +3,4 @@ This folder contains playbooks for orchestrating tasks. ## Available Playbooks -- +- `apt_update.yml` diff --git a/ansible/playbooks/apt_update.yml b/ansible/playbooks/apt_update.yml new file mode 100644 index 0000000..2724a30 --- /dev/null +++ b/ansible/playbooks/apt_update.yml @@ -0,0 +1,12 @@ +--- +- name: Update the server + hosts: vps + become: true + tasks: + + - name: Update and upgrade apt packages + ansible.builtin.apt: + update_cache: true + upgrade: true + autoremove: true +... |