Making a script that setups guest machines on proxmox, then gives inventory
to ansible. The problem is everything is done with a call to
subprocess.check_output ... 'ssh {proxmoxhost} ...' its been solid, but
also seems kinda silly to go through all that.
ControlPath helps, but id rather
Here is a similar example from my project
Creating the instance on EC2:
---
- name: Create a cluster nodes on EC2
hosts: localhost
connection: local
tasks:
- name: Launch instances
local_action:
module: ec2
region: {{region}}
keypair: {{key_name}}
replace: dest=/etc/fstab regexp='(\s+)defaults1 2(\s+.*)?$'
replace='\1defaults,noatime1 2\1' backup=yes
does not match
UUID=b203e2c3-5207-41a8-8f18-795b5ec6550f / ext4
defaults1 1
because of '1 1' vs '1 2'
Cheers,
Paul
--
You
On Thursday, March 26, 2015 at 6:57:01 AM UTC-3, codfather wrote:
Here is the working one.
You say it's working but do you continue playbook execution after the
restart?
I'm also trying to use a task to restart my servers but I would like to
wait_for them to come back and continue executing
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Hi,
I'm not entirely sure whether this should be considered an ansible or
systemctl bug.
This email mainly targets of making others aware of this problem.
If you want to disable (enabled=no) a service on a systemd host which
is still using legacy
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
I asked systemd-devel about is-enabled support for legacy services:
http://lists.freedesktop.org/archives/systemd-devel/2015-April/030652.ht
ml
-BEGIN PGP SIGNATURE-
iQIcBAEBCgAGBQJVKt2bAAoJEFv7XvVCELh0u8oQAKW4BGaeGDhjKc21TeQiXuqZ