[ansible-project] howto start and reuse ssh for pre ansible python provisioning script

2015-04-12 Thread pixel fairy
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

[ansible-project] Re: Extracting Single IP from launched EC2 instances

2015-04-12 Thread Tzach Livyatan
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}}

[ansible-project] Re: replace module help

2015-04-12 Thread Paul Tötterman
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

[ansible-project] Re: Trying to create ansible playbook to reboot servers and getting an error

2015-04-12 Thread Giovanni Tirloni
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

[ansible-project] bug in service module: failing to disable (enabled=no) legacy sysv services on systemd target

2015-04-12 Thread Nusenu
-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

Re: [ansible-project] bug in service module: failing to disable (enabled=no) legacy sysv services on systemd target

2015-04-12 Thread Nusenu
-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