Become connection working

This commit is contained in:
2026-08-19 14:16:39 -04:00
parent 1b487e9995
commit 3e9a5857d4
4 changed files with 24 additions and 0 deletions
@@ -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
+5
View File
@@ -0,0 +1,5 @@
all:
children:
container_hosts:
hosts:
ch01.balsillie.house:
+12
View File
@@ -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"