ansible coming
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: true
|
||||||
|
# become: yes
|
||||||
|
# become_user: root
|
||||||
|
# become_method: sudo
|
||||||
|
roles:
|
||||||
|
- TmplLinuxServer
|
||||||
|
...
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
---
|
||||||
|
- hosts: all
|
||||||
|
gather_facts: yes
|
||||||
|
# become: yes
|
||||||
|
# become_user: root
|
||||||
|
# become_method: sudo
|
||||||
|
roles:
|
||||||
|
- TmplWindowsServer
|
||||||
|
...
|
||||||
@@ -51,6 +51,19 @@ source "proxmox" "rocky" {
|
|||||||
build {
|
build {
|
||||||
sources = [ "source.proxmox.rocky" ]
|
sources = [ "source.proxmox.rocky" ]
|
||||||
|
|
||||||
|
provisioner "ansible" {
|
||||||
|
pause_before = "20s"
|
||||||
|
ansible_env_vars= [
|
||||||
|
"ANSIBLE_HOST_KEY_CHECKING=False",
|
||||||
|
"ANSIBLE_SSH_ARGS='-o ForwardAgent=yes -o ControlMaster=auto -o ControlPersist=60s'",
|
||||||
|
"ANSIBLE_NOCOLOR=True"
|
||||||
|
]
|
||||||
|
extra_arguments= [
|
||||||
|
"-e templating=true"
|
||||||
|
]
|
||||||
|
playbook_file = "../Ansible/playbooks/SolvayLinuxServers.yaml"
|
||||||
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
pause_before = "20s"
|
pause_before = "20s"
|
||||||
inline = [
|
inline = [
|
||||||
|
|||||||
Reference in New Issue
Block a user