Become connection working
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
ansible_become_method: ansible.builtin.sudo
|
||||
ansible_sudo_user: root
|
||||
ansible_sudo_pass: "{{ lookup('community.general.passwordstore', 'ansible/become-password') }}"
|
||||
@@ -0,0 +1,4 @@
|
||||
ansible_connection: ansible.builtin.ssh
|
||||
ansible_ssh_host: ch01.balsillie.house
|
||||
ansible_ssh_port: 22
|
||||
ansible_ssh_user: ladmin
|
||||
@@ -0,0 +1,5 @@
|
||||
all:
|
||||
children:
|
||||
container_hosts:
|
||||
hosts:
|
||||
ch01.balsillie.house:
|
||||
@@ -0,0 +1,12 @@
|
||||
---
|
||||
|
||||
- name: Configure container hosts
|
||||
hosts:
|
||||
- ch01.balsillie.house
|
||||
gather_facts: false
|
||||
tasks:
|
||||
|
||||
- name: Ping
|
||||
become: true
|
||||
ansible.builtin.ping:
|
||||
data: "pong"
|
||||
Reference in New Issue
Block a user