From c094921e17eb064edc58dab30eed1addd58fa4c6 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Tue, 7 May 2019 15:21:33 -0700 Subject: [PATCH] renamed roles --- .gitignore | 7 ++++++- README.md | 6 ++++-- ansible.cfg | 2 +- playbook/linux/auto-securityupdates.yml | 1 + roles/{elasticsearch => luther38.elasticsearch}/README.md | 0 .../defaults/main.yml | 0 .../handlers/main.yml | 0 .../meta/main.yml | 0 .../tasks/install-repo.yml | 0 .../tasks/main.yml | 0 .../tasks/ubuntu.yml | 0 .../templates/elasticsearch.j2 | 0 .../tests/inventory | 0 .../tests/test.yml | 0 .../vars/main.yml | 0 roles/{kibana => luther38.kibana}/README.md | 0 roles/{kibana => luther38.kibana}/defaults/main.yml | 0 roles/{kibana => luther38.kibana}/handlers/main.yml | 0 roles/{kibana => luther38.kibana}/meta/main.yml | 0 roles/{kibana => luther38.kibana}/tasks/install-repo.yml | 0 roles/{kibana => luther38.kibana}/tasks/main.yml | 0 roles/{kibana => luther38.kibana}/tasks/ubuntu.yml | 0 roles/{kibana => luther38.kibana}/templates/kibana.j2 | 0 roles/{kibana => luther38.kibana}/tests/inventory | 0 roles/{kibana => luther38.kibana}/tests/test.yml | 0 roles/{kibana => luther38.kibana}/vars/main.yml | 0 26 files changed, 12 insertions(+), 4 deletions(-) rename roles/{elasticsearch => luther38.elasticsearch}/README.md (100%) rename roles/{elasticsearch => luther38.elasticsearch}/defaults/main.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/handlers/main.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/meta/main.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/tasks/install-repo.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/tasks/main.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/tasks/ubuntu.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/templates/elasticsearch.j2 (100%) rename roles/{elasticsearch => luther38.elasticsearch}/tests/inventory (100%) rename roles/{elasticsearch => luther38.elasticsearch}/tests/test.yml (100%) rename roles/{elasticsearch => luther38.elasticsearch}/vars/main.yml (100%) rename roles/{kibana => luther38.kibana}/README.md (100%) rename roles/{kibana => luther38.kibana}/defaults/main.yml (100%) rename roles/{kibana => luther38.kibana}/handlers/main.yml (100%) rename roles/{kibana => luther38.kibana}/meta/main.yml (100%) rename roles/{kibana => luther38.kibana}/tasks/install-repo.yml (100%) rename roles/{kibana => luther38.kibana}/tasks/main.yml (100%) rename roles/{kibana => luther38.kibana}/tasks/ubuntu.yml (100%) rename roles/{kibana => luther38.kibana}/templates/kibana.j2 (100%) rename roles/{kibana => luther38.kibana}/tests/inventory (100%) rename roles/{kibana => luther38.kibana}/tests/test.yml (100%) rename roles/{kibana => luther38.kibana}/vars/main.yml (100%) diff --git a/.gitignore b/.gitignore index 899db53..769761f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,12 @@ +# Ansible Files *.retry - *.swp + +# OSX files .DS_Store + + +# Ansible Inventory hosts win_hosts diff --git a/README.md b/README.md index 0b5b9ca..d07295a 100644 --- a/README.md +++ b/README.md @@ -25,11 +25,13 @@ powershell.exe -ExecutionPolicy ByPass -File $file ## Configuration -I have a basic configuration file in place at the root of this folder for anisble to find. +I have a basic configuration file in place at the root of this folder for anisble to find. If you work out of this directory the configuration file will take effect that is loaded. ## Inventory -I have a template file in place that should only be used as a refrence. Make a copy of that file and name it hosts then update that file. +I have a template file in place that should only be used as a reference. Make a copy of that file and name it hosts then update that file. + +The configuration file that is active is looking for a directory that contains all of the inventory files. This way all files can be parted out rather then one big file. ### Testing Linux devices diff --git a/ansible.cfg b/ansible.cfg index 9301b00..64e8afc 100644 --- a/ansible.cfg +++ b/ansible.cfg @@ -11,7 +11,7 @@ # some basic default values... -inventory = ~/hosts +inventory = ~/hosts/ library = /usr/share/my_modules/ module_utils = /usr/share/my_module_utils/ remote_tmp = ~/.ansible/tmp diff --git a/playbook/linux/auto-securityupdates.yml b/playbook/linux/auto-securityupdates.yml index 3a13640..122e948 100644 --- a/playbook/linux/auto-securityupdates.yml +++ b/playbook/linux/auto-securityupdates.yml @@ -5,6 +5,7 @@ hosts: linux tasks: + # https://galaxy.ansible.com/jnv/unattended-upgrades - name: unattended-upgrades become: true include_role: diff --git a/roles/elasticsearch/README.md b/roles/luther38.elasticsearch/README.md similarity index 100% rename from roles/elasticsearch/README.md rename to roles/luther38.elasticsearch/README.md diff --git a/roles/elasticsearch/defaults/main.yml b/roles/luther38.elasticsearch/defaults/main.yml similarity index 100% rename from roles/elasticsearch/defaults/main.yml rename to roles/luther38.elasticsearch/defaults/main.yml diff --git a/roles/elasticsearch/handlers/main.yml b/roles/luther38.elasticsearch/handlers/main.yml similarity index 100% rename from roles/elasticsearch/handlers/main.yml rename to roles/luther38.elasticsearch/handlers/main.yml diff --git a/roles/elasticsearch/meta/main.yml b/roles/luther38.elasticsearch/meta/main.yml similarity index 100% rename from roles/elasticsearch/meta/main.yml rename to roles/luther38.elasticsearch/meta/main.yml diff --git a/roles/elasticsearch/tasks/install-repo.yml b/roles/luther38.elasticsearch/tasks/install-repo.yml similarity index 100% rename from roles/elasticsearch/tasks/install-repo.yml rename to roles/luther38.elasticsearch/tasks/install-repo.yml diff --git a/roles/elasticsearch/tasks/main.yml b/roles/luther38.elasticsearch/tasks/main.yml similarity index 100% rename from roles/elasticsearch/tasks/main.yml rename to roles/luther38.elasticsearch/tasks/main.yml diff --git a/roles/elasticsearch/tasks/ubuntu.yml b/roles/luther38.elasticsearch/tasks/ubuntu.yml similarity index 100% rename from roles/elasticsearch/tasks/ubuntu.yml rename to roles/luther38.elasticsearch/tasks/ubuntu.yml diff --git a/roles/elasticsearch/templates/elasticsearch.j2 b/roles/luther38.elasticsearch/templates/elasticsearch.j2 similarity index 100% rename from roles/elasticsearch/templates/elasticsearch.j2 rename to roles/luther38.elasticsearch/templates/elasticsearch.j2 diff --git a/roles/elasticsearch/tests/inventory b/roles/luther38.elasticsearch/tests/inventory similarity index 100% rename from roles/elasticsearch/tests/inventory rename to roles/luther38.elasticsearch/tests/inventory diff --git a/roles/elasticsearch/tests/test.yml b/roles/luther38.elasticsearch/tests/test.yml similarity index 100% rename from roles/elasticsearch/tests/test.yml rename to roles/luther38.elasticsearch/tests/test.yml diff --git a/roles/elasticsearch/vars/main.yml b/roles/luther38.elasticsearch/vars/main.yml similarity index 100% rename from roles/elasticsearch/vars/main.yml rename to roles/luther38.elasticsearch/vars/main.yml diff --git a/roles/kibana/README.md b/roles/luther38.kibana/README.md similarity index 100% rename from roles/kibana/README.md rename to roles/luther38.kibana/README.md diff --git a/roles/kibana/defaults/main.yml b/roles/luther38.kibana/defaults/main.yml similarity index 100% rename from roles/kibana/defaults/main.yml rename to roles/luther38.kibana/defaults/main.yml diff --git a/roles/kibana/handlers/main.yml b/roles/luther38.kibana/handlers/main.yml similarity index 100% rename from roles/kibana/handlers/main.yml rename to roles/luther38.kibana/handlers/main.yml diff --git a/roles/kibana/meta/main.yml b/roles/luther38.kibana/meta/main.yml similarity index 100% rename from roles/kibana/meta/main.yml rename to roles/luther38.kibana/meta/main.yml diff --git a/roles/kibana/tasks/install-repo.yml b/roles/luther38.kibana/tasks/install-repo.yml similarity index 100% rename from roles/kibana/tasks/install-repo.yml rename to roles/luther38.kibana/tasks/install-repo.yml diff --git a/roles/kibana/tasks/main.yml b/roles/luther38.kibana/tasks/main.yml similarity index 100% rename from roles/kibana/tasks/main.yml rename to roles/luther38.kibana/tasks/main.yml diff --git a/roles/kibana/tasks/ubuntu.yml b/roles/luther38.kibana/tasks/ubuntu.yml similarity index 100% rename from roles/kibana/tasks/ubuntu.yml rename to roles/luther38.kibana/tasks/ubuntu.yml diff --git a/roles/kibana/templates/kibana.j2 b/roles/luther38.kibana/templates/kibana.j2 similarity index 100% rename from roles/kibana/templates/kibana.j2 rename to roles/luther38.kibana/templates/kibana.j2 diff --git a/roles/kibana/tests/inventory b/roles/luther38.kibana/tests/inventory similarity index 100% rename from roles/kibana/tests/inventory rename to roles/luther38.kibana/tests/inventory diff --git a/roles/kibana/tests/test.yml b/roles/luther38.kibana/tests/test.yml similarity index 100% rename from roles/kibana/tests/test.yml rename to roles/luther38.kibana/tests/test.yml diff --git a/roles/kibana/vars/main.yml b/roles/luther38.kibana/vars/main.yml similarity index 100% rename from roles/kibana/vars/main.yml rename to roles/luther38.kibana/vars/main.yml