Skip to content

Instantly share code, notes, and snippets.

@m1cr0man
Created December 30, 2018 13:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save m1cr0man/75b37cc6fbeb858ac0414396a1d99634 to your computer and use it in GitHub Desktop.
Save m1cr0man/75b37cc6fbeb858ac0414396a1d99634 to your computer and use it in GitHub Desktop.
Ansible #50399 sample
PLAY [baremetal] **************************************************************************************************************************************************************************************************************************************************************
TASK [Gathering Facts] ********************************************************************************************************************************************************************************************************************************************************
ok: [myserver]
TASK [hello-world imported] ***************************************************************************************************************************************************************************************************************************************************
changed: [myserver]
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************
ok: [myserver] => {
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e"
}
TASK [hello-world imported x2] ************************************************************************************************************************************************************************************************************************************************
ok: [myserver]
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************
ok: [myserver] => {
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e"
}
TASK [hello-world deleted] ****************************************************************************************************************************************************************************************************************************************************
changed: [myserver]
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************
ok: [myserver] => {
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e"
}
TASK [hello-world deleted x2] *************************************************************************************************************************************************************************************************************************************************
ok: [myserver]
TASK [debug] ******************************************************************************************************************************************************************************************************************************************************************
ok: [myserver] => {
"helloworld.uuid": "a65fb4d3-593f-1ec2-d89a-4649e5ed856e"
}
PLAY RECAP ********************************************************************************************************************************************************************************************************************************************************************
myserver : ok=9 changed=2 unreachable=0 failed=0
---
- hosts: baremetal
tasks:
- name: hello-world imported
register: helloworld
imgadm:
tag: hello-world:latest
state: present
- debug: var=helloworld.uuid
- name: hello-world imported x2
register: helloworld
imgadm:
tag: hello-world:latest
state: imported
- debug: var=helloworld.uuid
- name: hello-world deleted
register: helloworld
imgadm:
tag: hello-world:latest
state: absent
- debug: var=helloworld.uuid
- name: hello-world deleted x2
register: helloworld
imgadm:
tag: hello-world:latest
state: deleted
- debug: var=helloworld.uuid
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment