From c53834e16fc34b5fd020ea2440ff469616275e99 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Tue, 19 Dec 2023 15:47:31 +0000 Subject: Move basic role to essential --- TODO.txt | 1 + ansible.cfg | 3 +++ roles/basic/tasks/main.yml | 7 ------- roles/essential/tasks/main.yml | 8 ++++++++ setup.yml | 2 +- 5 files changed, 13 insertions(+), 8 deletions(-) delete mode 100644 roles/basic/tasks/main.yml create mode 100644 roles/essential/tasks/main.yml diff --git a/TODO.txt b/TODO.txt index 81759b4..69d3a41 100644 --- a/TODO.txt +++ b/TODO.txt @@ -4,6 +4,7 @@ ANSIBLE * Is there a way to make playbooks cross-platform? For example have same setup for CentOS and Arch Linux? Is it possible to extend it to macOS? * Figure out directory structure. +* How to bootstrap python? DISTRIBUTION diff --git a/ansible.cfg b/ansible.cfg index 7b3ffcb..600b508 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -1,3 +1,6 @@ [defaults] inventory = hosts.ini remote_user = root +# Don't want to see warning about Python. On everything I run, proper Python 3 +# should be discoverable. +interpreter_python = auto_silent diff --git a/roles/basic/tasks/main.yml b/roles/basic/tasks/main.yml deleted file mode 100644 index 50dee3d..0000000 --- a/roles/basic/tasks/main.yml +++ /dev/null @@ -1,7 +0,0 @@ -- name: Install basic tools - ansible.builtin.package: - name: - - vim - - screen - - git - state: present diff --git a/roles/essential/tasks/main.yml b/roles/essential/tasks/main.yml new file mode 100644 index 0000000..26fcea0 --- /dev/null +++ b/roles/essential/tasks/main.yml @@ -0,0 +1,8 @@ +- name: Install essential tools + ansible.builtin.package: + name: + - vim + - screen + - git + - which + state: present diff --git a/setup.yml b/setup.yml index 026e4ef..05d9385 100644 --- a/setup.yml +++ b/setup.yml @@ -1,4 +1,4 @@ - name: Basic setup for all hosts hosts: all roles: - - { role: basic } + - { role: essential } -- cgit v1.2.3-70-g09d2