diff options
author | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-04-04 02:31:36 +0200 |
---|---|---|
committer | Johannes Stoelp <johannes.stoelp@gmail.com> | 2025-04-04 02:34:31 +0200 |
commit | 78561724fa4f58b8d256227f8913e712ecbd30f5 (patch) | |
tree | 73bb4d741d7c47d4d2afed5f46fb87898b5ab420 /packages.yml | |
parent | 7675dc593326936276cea39f347342bcad8fd96c (diff) | |
download | ansible-ship-78561724fa4f58b8d256227f8913e712ecbd30f5.tar.gz ansible-ship-78561724fa4f58b8d256227f8913e712ecbd30f5.zip |
packages: move package update & install into own playbook
Diffstat (limited to 'packages.yml')
-rw-r--r-- | packages.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/packages.yml b/packages.yml new file mode 100644 index 0000000..fe22ff1 --- /dev/null +++ b/packages.yml @@ -0,0 +1,34 @@ + +- name: ship setup + hosts: all + gather_facts: no + vars: + user: "{{ '$USER' | expandvars }}" + data: "{{ '$HOME/services' | expandvars }}" + + tasks: + + # -- UPDATE ALL ------------------------------------------------------------ + + - name: update-packages + become: true + ansible.builtin.package: + name: "*" + state: latest + + # -- PACKAGES -------------------------------------------------------------- + + - name: install-packages + become: true + ansible.builtin.package: + name: "{{ item }}" + state: latest + loop: + - vim + - podman + - tmux + - git + - ncdu + - restic + # For restic mount. + - fuse |