Kevin Fenzi
fc5ea0b944
virt_instance_create: The emags use python3 here.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:14 +02:00
Kevin Fenzi
df4d17f839
virt_instance_create: ansible_python_interperter should be a var
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:12 +02:00
Kevin Fenzi
74c4fc2188
virt_instance_create: Try and use python2 for the virt_boot call since it's python2.
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2020-04-24 21:34:12 +02:00
Kevin Fenzi
4b31ac5152
ansible: Change all our group names from foo-bar to foo_bar or foo-bar-baz to foo_bar_baz
...
In ansible 2.8 the - character isn't supposed to be valid in group names.
While we could override this, might has well just bite the bullet and change it.
So, just switch all group names to use _ instead of -
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-05-20 17:38:09 +00:00
Kevin Fenzi
d92b8c9420
rhel8b virt install: comment removing old facts as then we can't use python3
...
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
2019-01-17 22:18:40 +00:00
Kevin Fenzi
d3b0f146a1
ensure old facts are removed for hosts that are being reinstalled
2018-12-20 18:29:02 +00:00
Kevin Fenzi
a9feedd9e0
add import of vars to virt-instance create, should get almost all our hosts
2018-10-01 22:07:15 +00:00
Kevin Fenzi
86395da242
Move the armv7 kernel update to just finish before starting vm
2018-07-01 18:37:38 +00:00
Kevin Fenzi
e6c152f397
Guess we have to fail since we are in a included task
2018-06-27 21:11:48 +00:00
Kevin Fenzi
f3b9e23566
try and make things a bit easier to update armv7 vm kernels
2018-06-27 21:06:47 +00:00
Kevin Fenzi
bdd9841725
This won't work if we have some hosts on different virthosts.
2018-05-08 18:45:54 +00:00
Kevin Fenzi
adf233e961
Revert "ok, how about this?"
...
This reverts commit 7ec4217fd4
.
2018-05-08 02:06:19 +00:00
Kevin Fenzi
7ec4217fd4
ok, how about this?
2018-05-08 02:04:36 +00:00
Kevin Fenzi
a86cd63c69
ok, perhaps a longer poll time would help libvirt
2018-05-08 02:01:03 +00:00
Kevin Fenzi
68268332bb
Sometimes virt status is returning a 'no such object' error, so lets ignore those for now.
2018-05-08 01:50:20 +00:00
Kevin Fenzi
a78b607427
Perhaps we need to do this now to keep libvirt from stepping on itself.
2018-05-08 00:14:45 +00:00
Kevin Fenzi
b250b314d1
I wonder if you can now put variables in names like this
2017-10-09 02:18:50 +00:00
Kevin Fenzi
6b1fc4d83f
for initial installs use gathered ssh host key, then remove and use signed ones
2017-09-04 17:24:56 +00:00
Patrick Uiterwijk
208c557fc4
Do not clean or anything with known_hosts
...
Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
2017-08-15 18:13:41 +00:00
Kevin Fenzi
972c651295
fix up virt instance create autostart
2017-05-14 04:36:36 +00:00
Kevin Fenzi
6fbfacec8d
do not use true
2017-04-27 16:52:11 +00:00
Kevin Fenzi
f4365f7494
try and set things so we can force armv7 kernel updates
2017-04-27 16:50:29 +00:00
Ralph Bean
4d53011cf0
Apparently this changed in ansible-2.3 http://docs.ansible.com/ansible/virt_module.html
2017-04-25 20:34:54 +00:00
Ralph Bean
f5ba41e0db
Use the state value preferred by ansible here.
...
Ansible tells me:
value of state must be one of: running,shutdown,destroyed,paused, got: started
2017-04-25 19:38:39 +00:00
60d6de2eef
virt: adjust the pause for ARMv7
2017-04-17 22:09:50 +00:00
e7139d4ac7
virt: add a pause for ARMv7 virt installs
2017-04-17 21:57:40 +00:00
bb05921e7a
builders: ARMv7, make the kernel/initrd args more generic
2017-04-17 20:22:44 +00:00
502f4c4aaa
builders: armv7 VM: copy kernel only when VM is shutdown
2017-04-17 17:45:59 +00:00
16fe1f9c84
builder vm: add tag for armv7 kernel
2017-04-14 10:18:28 +00:00
ba1727b7dc
builders: ARMv7 tweak virt_boot cmdline
2017-04-13 20:02:19 +00:00
9aa70810b2
builders: ARMv7 virt_boot needs domain
2017-04-13 19:38:34 +00:00
b18c9881b6
builders: some ARMv7 bits need shell, not command
2017-04-13 19:17:57 +00:00
5bda47cc10
builders: some ARMv7 commands need quotes
2017-04-13 19:01:31 +00:00
a046a6f8e0
builders: some ARMv7 bits need delegate_to
2017-04-13 18:36:54 +00:00
b64f8d37d9
builders: initial pass at a ARMv7 virt builder
2017-04-13 17:58:50 +00:00
Kevin Fenzi
8a6e51a9a6
change state=running to start=started as the old one is going away in ansible 2.7
2017-04-13 01:37:21 +00:00
Kevin Fenzi
969bd77cf1
strike that, reverse it
2016-12-11 16:00:51 +00:00
Kevin Fenzi
059286e6d9
lets try and set serial one on lvm and virt-install starting
2016-12-11 15:58:40 +00:00
Kevin Fenzi
b1a2d105c9
In ansible 2.2 always_run is depreciated. Switch to check_mode.
2016-11-01 16:29:49 +00:00
Adam Miller
a9151f4cd2
add handling of host keys for osbs-control/osbs-cluster hosts
...
Signed-off-by: Adam Miller <admiller@redhat.com>
2016-10-25 19:13:19 +00:00
Kevin Fenzi
4cafc2bd37
Fix all tasks to not use old action: statements.
2016-01-06 21:25:10 +00:00
Kevin Fenzi
b62619e9d3
Duh. Need to quote this because it's multiline
2015-05-28 19:42:53 +00:00
Kevin Fenzi
5b77fe91d2
Try |string
2015-05-28 19:23:46 +00:00
Kevin Fenzi
c495f031d3
ok, lets try |str filter here.
2015-05-28 19:05:46 +00:00
Kevin Fenzi
aed8829f96
I'm sure it can't be this easy, but will try adding a join filter here.
2015-05-28 18:19:54 +00:00
Kevin Fenzi
6ba003e4ea
Need this local keyscan action to be a command.
2015-05-28 17:49:23 +00:00
Kevin Fenzi
c1bb97974b
This is an attempt to gather initial ssh_host_key from new vms when they are made.
...
This avoids having to accept the key manually and allows playbooks making new
instances to complete without human intervention.
(If it works as desired)
2015-05-28 17:35:25 +00:00
Kevin Fenzi
cb471507ea
Drop this known_hosts thing from virt_host_create for now, it has no where to look up the host key.
2015-05-05 21:48:06 +00:00
Kevin Fenzi
06621bffff
When installing a new vm remove old and add new ssh host keys
2015-04-22 14:41:48 +00:00
Kevin Fenzi
5ab781961a
Bump this timeout way up.
2014-07-19 23:41:52 +00:00