diff options
author | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-12-18 17:22:27 +0000 |
---|---|---|
committer | Dmitry Ilvokhin <d@ilvokhin.com> | 2023-12-18 17:22:27 +0000 |
commit | bc8d5c46d8174b4373d48c29444f9e611d695b28 (patch) | |
tree | 436a94baa13d45e426c0d711e234ee524a34da59 | |
parent | 8a06a5c525a4c8d3d8f066c55a9f01a6be00ea43 (diff) | |
download | infra-bc8d5c46d8174b4373d48c29444f9e611d695b28.tar.gz infra-bc8d5c46d8174b4373d48c29444f9e611d695b28.tar.bz2 infra-bc8d5c46d8174b4373d48c29444f9e611d695b28.zip |
Initial configs and basic role
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | ansible.cfg | 3 | ||||
-rw-r--r-- | hosts.ini | 2 | ||||
-rw-r--r-- | roles/basic/tasks/main.yml | 7 | ||||
-rw-r--r-- | setup.yml | 4 |
5 files changed, 18 insertions, 0 deletions
@@ -1 +1,3 @@ .env +*.swp +.DS_Store diff --git a/ansible.cfg b/ansible.cfg new file mode 100644 index 0000000..7b3ffcb --- /dev/null +++ b/ansible.cfg @@ -0,0 +1,3 @@ +[defaults] +inventory = hosts.ini +remote_user = root diff --git a/hosts.ini b/hosts.ini new file mode 100644 index 0000000..a29fd2f --- /dev/null +++ b/hosts.ini @@ -0,0 +1,2 @@ +[test] +arch.ilvokhin.com diff --git a/roles/basic/tasks/main.yml b/roles/basic/tasks/main.yml new file mode 100644 index 0000000..50dee3d --- /dev/null +++ b/roles/basic/tasks/main.yml @@ -0,0 +1,7 @@ +- name: Install basic tools + ansible.builtin.package: + name: + - vim + - screen + - git + state: present diff --git a/setup.yml b/setup.yml new file mode 100644 index 0000000..026e4ef --- /dev/null +++ b/setup.yml @@ -0,0 +1,4 @@ +- name: Basic setup for all hosts + hosts: all + roles: + - { role: basic } |