diff --git a/inventory.yml b/inventory.yml index 4ff142a..d6a93ba 100644 --- a/inventory.yml +++ b/inventory.yml @@ -1,4 +1,4 @@ -servers: +debianservers: hosts: hyperreal.coffee: ansible_user: jas @@ -21,6 +21,13 @@ servers: ansible_host: 10.0.0.5 ansible_python_interpreter: /usr/bin/python3 +rhelservers: + hosts: + nas-remote: + ansible_user: root + ansible_host: nas-remote.lyrebird-marlin.ts.net + ansible_python_interpreter: /usr/bin/python3 + promservers: hosts: desktop: @@ -34,19 +41,19 @@ promclients: ansible_user: root ansible_host: nas-remote.lyrebird-marlin.ts.net ansible_python_interpreter: /usr/bin/python3 - # hyperreal.coffee: - # ansible_user: jas - # ansible_host: hyperreal.lyrebird-marlin.ts.net - # ansible_python_interpreter: /usr/bin/python3 - # nas-local: - # ansible_user: jas - # ansible_host: nas-local.lyrebird-marlin.ts.net - # ansible_python_interpreter: /usr/bin/python3 - # auxnode: - # ansible_user: jas - # ansible_host: auxnode.lyrebird-marlin.ts.net - # ansible_python_interpreter: /usr/bin/python3 - # auxnode2: - # ansible_user: jas - # ansible_host: 10.0.0.5 - # ansible_python_interpreter: /usr/bin/python3 + hyperreal.coffee: + ansible_user: jas + ansible_host: hyperreal.lyrebird-marlin.ts.net + ansible_python_interpreter: /usr/bin/python3 + nas-local: + ansible_user: jas + ansible_host: nas-local.lyrebird-marlin.ts.net + ansible_python_interpreter: /usr/bin/python3 + auxnode: + ansible_user: jas + ansible_host: auxnode.lyrebird-marlin.ts.net + ansible_python_interpreter: /usr/bin/python3 + auxnode2: + ansible_user: jas + ansible_host: 10.0.0.5 + ansible_python_interpreter: /usr/bin/python3 diff --git a/uptime.yml b/uptime.yml new file mode 100644 index 0000000..54bb3ac --- /dev/null +++ b/uptime.yml @@ -0,0 +1,13 @@ +--- +- name: Get server uptimes + hosts: + - debianservers + - rhelservers + + tasks: + - name: Get uptime + ansible.builtin.shell: uptime -p + register: uptime + + - debug: + msg: "{{ uptime.stdout }}"