jenkins localhost fix and ubuntu version fix
This commit is contained in:
5
inventory/host_vars/jenkins.yml
Normal file
5
inventory/host_vars/jenkins.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
# The Jenkins controller installs the agent on itself locally
|
||||
# rather than SSHing back into the machine running the playbook
|
||||
ansible_connection: local
|
||||
ansible_host: localhost
|
||||
@@ -22,8 +22,5 @@ groups:
|
||||
zabbix_targets: "'zabbix' in (proxmox_tags | default([]))"
|
||||
|
||||
compose:
|
||||
# If this host's Proxmox name matches the controller's hostname, connect locally
|
||||
# instead of SSHing back into the machine running the playbook
|
||||
ansible_connection: "'local' if name == lookup('pipe', 'hostname') else 'ssh'"
|
||||
ansible_host: "lookup('pipe', 'hostname') if name == lookup('pipe', 'hostname') else name + '.lan'"
|
||||
ansible_host: name + '.lan'
|
||||
ansible_user: 'jenkins'
|
||||
|
||||
Reference in New Issue
Block a user