diff --git a/inv_linuxes_portainer b/inv_linuxes_portainer index c655062..e303826 100644 --- a/inv_linuxes_portainer +++ b/inv_linuxes_portainer @@ -2,4 +2,4 @@ proxmox ansible_host=192.168.69.2 [nextcloud_host] -portainer ansible_host=192.168.69.253 \ No newline at end of file +portainer ansible_host=192.168.69.253 ansible_user=howard ansible_password=Papadopolus0 ansible_connection=ssh ansible_port=22 ansible_ssh_common_args='-o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o PreferredAuthentications=keyboard-interactive,password -o PubkeyAuthentication=no -o NumberOfPasswordPrompts=1 -J root@192.168.69.2' \ No newline at end of file diff --git a/nextcloud/miniplay.yml b/nextcloud/miniplay.yml index f8f5dee..0bdfaee 100644 --- a/nextcloud/miniplay.yml +++ b/nextcloud/miniplay.yml @@ -1,25 +1,8 @@ --- -- name: "pure SSH and then sudo" +- name: "SSH ping through jump host" hosts: nextcloud_host gather_facts: false + become: false tasks: - - name: "Who am I as SSH user? (no sudo)" - become: false - ansible.builtin.command: whoami - changed_when: false - register: who - - - name: "Show SSH user" - ansible.builtin.debug: - msg: "SSH user is: {{ who.stdout }}" - - - name: "Who am I with sudo? (explicit become)" - become: true - become_method: sudo - ansible.builtin.command: whoami - changed_when: false - register: who_root - - - name: "Show become user" - ansible.builtin.debug: - msg: "Become user is: {{ who_root.stdout }}" \ No newline at end of file + - name: ping + ansible.builtin.ping: \ No newline at end of file