add terminatepb.yml to copr-be
This commit is contained in:
parent
177cbb7d92
commit
f02e5e6c1f
2 changed files with 17 additions and 0 deletions
16
files/copr/provision/terminatepb.yml
Normal file
16
files/copr/provision/terminatepb.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
- name: terminate instance
|
||||||
|
hosts: all
|
||||||
|
user: root
|
||||||
|
gather_facts: False
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: find the instance id from the
|
||||||
|
action: command curl -s http://169.254.169.254/latest/meta-data/instance-id
|
||||||
|
register: instanceid
|
||||||
|
|
||||||
|
- name: terminate it
|
||||||
|
local_action: euca-terminate-instances ${instanceid.stdout}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,7 @@
|
||||||
with_items:
|
with_items:
|
||||||
- inventory
|
- inventory
|
||||||
- builderpb.yml
|
- builderpb.yml
|
||||||
|
- terminatepb.yml
|
||||||
|
|
||||||
- name: put files into the files subdir off of provisioning
|
- name: put files into the files subdir off of provisioning
|
||||||
action: copy src=$item dest=/srv/copr-work/provision/files/
|
action: copy src=$item dest=/srv/copr-work/provision/files/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue