Skip to content

Instantly share code, notes, and snippets.

@vrutkovs
Last active April 5, 2018 16:39
Show Gist options
  • Select an option

  • Save vrutkovs/bf0be7d3990c350174b453e89a9da2de to your computer and use it in GitHub Desktop.

Select an option

Save vrutkovs/bf0be7d3990c350174b453e89a9da2de to your computer and use it in GitHub Desktop.
ansible-playbook 2.4.2.0
config file = /etc/ansible/ansible.cfg
configured module search path = [u'/home/vrutkovs/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
ansible python module location = /home/vrutkovs/.local/lib/python2.7/site-packages/ansible
executable location = /usr/bin/ansible-playbook
python version = 2.7.14 (default, Mar 14 2018, 13:36:31) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]
Using /etc/ansible/ansible.cfg as config file
Parsed /etc/ansible/hosts inventory source with ini plugin
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, only localhost is available
PLAYBOOK: test.yaml ***************************************************************************************************************************************************************************
1 plays in test.yaml
PLAY [localhost] ******************************************************************************************************************************************************************************
META: ran handlers
TASK [set_fact] *******************************************************************************************************************************************************************************
task path: /tmp/ansible/test.yaml:5
ok: [localhost] => {
"ansible_facts": {
"name": "foo"
},
"changed": false
}
TASK [add foo] ********************************************************************************************************************************************************************************
task path: /tmp/ansible/test.yaml:7
ok: [localhost] => {
"name": "foo"
}
META: ran handlers
META: ran handlers
PLAY RECAP ************************************************************************************************************************************************************************************
localhost : ok=2 changed=0 unreachable=0 failed=0
- hosts: localhost
connection: local
gather_facts: no
tasks:
- set_fact:
name: foo
- name: "add {{name}}"
debug:
var=name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment