From 1e83ea64e9baa15d5512cfaaccdc1ae27d2e7a34 Mon Sep 17 00:00:00 2001 From: Kevin Veen-Birkenbach Date: Fri, 12 Nov 2021 16:23:58 +0100 Subject: [PATCH] added draft --- README.md | 9 +++++++-- playbook.yml | 5 +++++ roles/native-pacman-update/tasks/main.yml | 4 ++++ 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 playbook.yml create mode 100644 roles/native-pacman-update/tasks/main.yml diff --git a/README.md b/README.md index e8f239c..900461d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ -# client-playbook -Playbook to setup clients +# Client Playbook +Playbook to setup Manjaro GNOME clients. +# Todo +- Add Template folder +# See +- https://www.middlewareinventory.com/blog/run-ansible-playbook-locally/ +- https://stackoverflow.com/questions/30533372/run-an-ansible-task-only-when-the-hostname-contains-a-string diff --git a/playbook.yml b/playbook.yml new file mode 100644 index 0000000..93f6700 --- /dev/null +++ b/playbook.yml @@ -0,0 +1,5 @@ +- name: general host setup + hosts: all + become: true + roles: + - native-pacman-update diff --git a/roles/native-pacman-update/tasks/main.yml b/roles/native-pacman-update/tasks/main.yml new file mode 100644 index 0000000..f7285d6 --- /dev/null +++ b/roles/native-pacman-update/tasks/main.yml @@ -0,0 +1,4 @@ +- name: update pacman + pacman: + update_cache: yes + upgrade: yes