From 9a2bb2f7a83d7506f8ca6833c5b9892d28fc2191 Mon Sep 17 00:00:00 2001 From: Hyperling Date: Mon, 21 Dec 2020 05:50:12 -0600 Subject: [PATCH] Trying to fix hosts file by defining it in config. Added when for POP!_OS. --- ansible.cfg | 2 ++ hosts | 2 +- local.yml | 5 ++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 ansible.cfg 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/hosts b/hosts index a14a3d7..729dc6e 100644 --- a/hosts +++ b/hosts @@ -1,3 +1,3 @@ -[workstations] +[workstation] x570 dell diff --git a/local.yml b/local.yml index 00af646..634c1c2 100644 --- a/local.yml +++ b/local.yml @@ -9,7 +9,10 @@ - include: tasks/packages.yml when: ansible_distribution == "Ubuntu" -- hosts: workstations + - include: tasks/flatpaks.yml + when: ansible_distribution == "Pop!_OS" + +- hosts: workstation become: true tasks: - include: tasks/flatpaks.yml