Created
October 26, 2018 08:09
-
-
Save ssbarnea/1fbd691dc5f637ce2a785b45c18b1bcf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- hosts: c7 | |
gather_facts: yes | |
tasks: | |
- debug: var=ansible_user_dir | |
# - debug: var=ansible_python_version | |
# - debug: var=ansible_pkg_mgr | |
# become: yes | |
- setup: | |
gather_subset: '!min,pkg_mgr,python_version' | |
# filter: ansible_user_dir | |
# become: yes | |
# - debug: | |
# var=ansible_pkg_mgr | |
- debug: | |
var=ansible_user_dir | |
- debug: var=ansible_python_version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/rdo/me master ⚡ $ ./user_dir.yml [9:08:07] | |
PLAY [c7] *************************************************************************************************************************************************************************************************************************************************************** | |
TASK [Gathering Facts] ************************************************************************************************************************************************************************************************************************************************** | |
Friday 26 October 2018 09:08:44 +0100 (0:00:00.073) 0:00:00.073 ******** | |
ok: [c7] | |
TASK [debug] ************************************************************************************************************************************************************************************************************************************************************ | |
Friday 26 October 2018 09:08:47 +0100 (0:00:02.271) 0:00:02.345 ******** | |
ok: [c7] => { | |
"ansible_user_dir": "/home/ssbarnea" | |
} | |
TASK [setup] ************************************************************************************************************************************************************************************************************************************************************ | |
Friday 26 October 2018 09:08:47 +0100 (0:00:00.107) 0:00:02.452 ******** | |
ok: [c7] | |
TASK [debug] ************************************************************************************************************************************************************************************************************************************************************ | |
Friday 26 October 2018 09:08:47 +0100 (0:00:00.472) 0:00:02.924 ******** | |
ok: [c7] => { | |
"ansible_user_dir": "/home/ssbarnea" | |
} | |
TASK [debug] ************************************************************************************************************************************************************************************************************************************************************ | |
Friday 26 October 2018 09:08:47 +0100 (0:00:00.086) 0:00:03.011 ******** | |
ok: [c7] => { | |
"ansible_python_version": "2.7.5" | |
} | |
PLAY RECAP ************************************************************************************************************************************************************************************************************************************************************** | |
c7 : ok=5 changed=0 unreachable=0 failed=0 | |
Friday 26 October 2018 09:08:47 +0100 (0:00:00.071) 0:00:03.083 ******** | |
=============================================================================== | |
Gathering Facts -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 2.27s | |
setup ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.47s | |
debug ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.11s | |
debug ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.09s | |
debug ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 0.07s | |
Playbook run took 0 days, 0 hours, 0 minutes, 3 seconds |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment