diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..938a8b5 --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,3 @@ +[defaults] +#inventory = hosts + diff --git a/hosts b/hosts new file mode 100644 index 0000000..e69de29 diff --git a/local.yml b/local.yml index 974c1c6..8bcc8b4 100644 --- a/local.yml +++ b/local.yml @@ -1,4 +1,4 @@ -- hosts: localhost +- hosts: all connection: local become: true @@ -13,5 +13,7 @@ changed_when: False when: ansible_os_family == "Debian" - tasks: - - include_tasks: tasks/packages.yml +- hosts: localhost + become: true + roles: + - workstation diff --git a/os_Archlinux.yml b/os_Archlinux.yml deleted file mode 100644 index 62e1a2f..0000000 --- a/os_Archlinux.yml +++ /dev/null @@ -1,4 +0,0 @@ -required_packages: - - vim - - man-pages - - man-db \ No newline at end of file diff --git a/roles/workstation/main.yml b/roles/workstation/main.yml new file mode 100644 index 0000000..94eb032 --- /dev/null +++ b/roles/workstation/main.yml @@ -0,0 +1,3 @@ +- block: + + include_tasks: tasks/packages.yml diff --git a/tasks/packages.yml b/roles/workstation/tasks/packages.yml similarity index 100% rename from tasks/packages.yml rename to roles/workstation/tasks/packages.yml