diff --git a/ansible/controller.yml b/ansible/controller.yml index 10f85fa..168992f 100644 --- a/ansible/controller.yml +++ b/ansible/controller.yml @@ -1 +1,2 @@ -controller.yml \ No newline at end of file +--- +#- hosts: \ No newline at end of file diff --git a/ansible/inventories/main-lab/host_vars/inspector.home.arpa.yml b/ansible/inventories/main-lab/host_vars/inspector.home.arpa.yml index 09a0dab..7166053 100644 --- a/ansible/inventories/main-lab/host_vars/inspector.home.arpa.yml +++ b/ansible/inventories/main-lab/host_vars/inspector.home.arpa.yml @@ -1 +1,2 @@ -----TODO set user \ No newline at end of file +--- +ansible_user: clouseau \ No newline at end of file diff --git a/ansible/readme.md b/ansible/readme.md index 405d51c..c03391e 100644 --- a/ansible/readme.md +++ b/ansible/readme.md @@ -1,18 +1,11 @@ # Ansible Playbooks -## Main Lab +## Inventories +### Main Lab Main lab used for experimenting and development [check](main-lab) - -## Non Infra +### Externals Management of extra infra nodes [check](non-infra) -## Templating Lab -Used for final templating [check](templating-lab) - -## Services -Management of infrastructures / services fo third parties [check](services) - - ## TODO * K8s cluster * Ensure micro on operating nodes diff --git a/ansible/roles/docker/tasks/main.yml b/ansible/roles/docker/tasks/main.yml index 797ef6a..3aba941 100644 --- a/ansible/roles/docker/tasks/main.yml +++ b/ansible/roles/docker/tasks/main.yml @@ -1,3 +1,17 @@ #SPDX-License-Identifier: MIT-0 --- # tasks file for docker +- include_tasks: install.yml + args: + apply: + become: yes +- include_tasks: docker_user.yml + args: + apply: + become: yes + +# - include_tasks: swarm.yml +# args: +# apply: +# become: yes +# become_user: docker diff --git a/ansible/site.yaml b/ansible/site.yaml index cb81818..070496a 100644 --- a/ansible/site.yaml +++ b/ansible/site.yaml @@ -1,7 +1,5 @@ --- #- import_playbook: dbservers.yml - -- name: Basic check nodes - hosts: all - roles: - - common \ No newline at end of file +- import_playbook: nodes.yml +#- import_playbook: controller.yml +- import_playbook: swarms.yml