From dc00ca34d9d0bc750cef82af2fcdcf20912f5b66 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 12 Sep 2021 18:46:01 +0200 Subject: [PATCH] Setting up inventory for host specific vars --- ansible.cfg | 2 ++ group_vars/{all => silverblue.yml} | 3 --- hosts | 3 +++ linux.yml => silverblue.yml | 5 +++-- 4 files changed, 8 insertions(+), 5 deletions(-) create mode 100644 ansible.cfg rename group_vars/{all => silverblue.yml} (97%) create mode 100644 hosts rename linux.yml => silverblue.yml (53%) diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..ed865bf --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,2 @@ +[defaults] +inventory = hosts diff --git a/group_vars/all b/group_vars/silverblue.yml similarity index 97% rename from group_vars/all rename to group_vars/silverblue.yml index f542492..b2d459d 100644 --- a/group_vars/all +++ b/group_vars/silverblue.yml @@ -14,9 +14,6 @@ flatpak_flatpaks: com.github.micahflee.torbrowser-launcher: state: present remote: flathub - com.github.ransome1.sleek: - state: present - remote: flathub com.spotify.Client: state: present remote: flathub diff --git a/hosts b/hosts new file mode 100644 index 0000000..670ea9e --- /dev/null +++ b/hosts @@ -0,0 +1,3 @@ +[silverblue] +chapek9 ansible_connection=local +ice9 ansible_connection=local \ No newline at end of file diff --git a/linux.yml b/silverblue.yml similarity index 53% rename from linux.yml rename to silverblue.yml index b1f932c..2da98c4 100644 --- a/linux.yml +++ b/silverblue.yml @@ -1,6 +1,7 @@ --- -- name: "Silverblue" - hosts: "localhost" +- name: "Set up Silverblue workstation" + hosts: + - silverblue connection: "local" roles: - flatpak