diff --git a/ansible/inventories/prox1_lab.yaml b/ansible/inventories/prox1_lab.yaml index b12ea3a..23f1055 100644 --- a/ansible/inventories/prox1_lab.yaml +++ b/ansible/inventories/prox1_lab.yaml @@ -2,6 +2,5 @@ prox1_lab_hosts: children: front: hosts: - prox1: - ansible_host: 146.48.108.11 - ansible_python_interpreter: /usr/bin/python3 \ No newline at end of file + prox1_lab_edge: + ansible_host: 146.48.108.11 \ No newline at end of file diff --git a/ansible/playbooks/nodes.yml b/ansible/playbooks/nodes.yml index 3e4c871..7240cbf 100644 --- a/ansible/playbooks/nodes.yml +++ b/ansible/playbooks/nodes.yml @@ -1,5 +1,7 @@ --- +- import_playbook: ping_all.yaml - name: Basic check nodes hosts: all roles: - - common \ No newline at end of file + - common + \ No newline at end of file diff --git a/ansible/playbooks/ping_all.yaml b/ansible/playbooks/ping_all.yaml new file mode 100644 index 0000000..df77080 --- /dev/null +++ b/ansible/playbooks/ping_all.yaml @@ -0,0 +1,10 @@ +--- + +- hosts: all + gather_facts: False + connection: local + + tasks: + - name: ping + shell: ping -c 1 -W 2 {{ ansible_host }} + diff --git a/ansible/playbooks/roles/common/tasks/connectivity.yml b/ansible/playbooks/roles/common/tasks/connectivity.yml index 7023e5e..003cded 100644 --- a/ansible/playbooks/roles/common/tasks/connectivity.yml +++ b/ansible/playbooks/roles/common/tasks/connectivity.yml @@ -1,9 +1,3 @@ --- -- name: Check node up - ansible.builtin.ping: - -#- name: Check internal DNS -# wait_for: host=edge.home.arpa port=53 timeout=1 - - name: Check access to Internet wait_for: host=1.1.1.1 timeout=1 diff --git a/ansible/playbooks/roles/docker/tests/test.yml b/ansible/playbooks/roles/docker/tests/test.yml index e4f8498..479c928 100644 --- a/ansible/playbooks/roles/docker/tests/test.yml +++ b/ansible/playbooks/roles/docker/tests/test.yml @@ -1,6 +1,5 @@ #SPDX-License-Identifier: MIT-0 --- - hosts: localhost - remote_user: root roles: - docker diff --git a/ansible/site.yaml b/ansible/playbooks/site.yaml similarity index 100% rename from ansible/site.yaml rename to ansible/playbooks/site.yaml