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
$ tree | |
. | |
├── fake_command | |
├── test_as_json_default_stdout.yml | |
└── test_as_lines_yaml_stdout.yml | |
0 directories, 3 files | |
$ cat fake_command | |
#!/usr/bin/env bash |
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
$ ansible --version | |
ansible [core 2.16.1] | |
config file = None | |
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/user/.local/lib/python3.10/site-packages/ansible | |
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/user/.local/bin/ansible | |
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3) | |
jinja version = 3.1.2 | |
libyaml = True |
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
$ tree . | |
. | |
├── demo.yml | |
├── unreachable_nodes-1.yml | |
└── unreachable_nodes-2.yml | |
0 directories, 3 files | |
$ cat unreachable_nodes-1.yml | |
--- |
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
$ ansible --version | |
ansible [core 2.15.6] | |
config file = None | |
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/user/.local/lib/python3.10/site-packages/ansible | |
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/user/.local/bin/ansible | |
python version = 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] (/usr/bin/python3) | |
jinja version = 3.1.2 | |
libyaml = True |
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
$ mkdir /tmp/toto | |
$ cd /tmp/toto/ | |
$ mkdir -p build/libs | |
# No problem with a single file | |
$ touch build/libs/Component-Name-1.2.3.jar | |
$ mv build/libs/Component-Name-?.?.?.jar build/libs/app.jar |
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
###################################### | |
# Step 1: basic fix so it just works # | |
###################################### | |
# In role | |
- name: Upload template.text | |
become: true | |
template: | |
src: templates/template.text | |
dest: /lib/template.text | |
vars: |
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
17:28 $ docker run -it --rm python:latest bash | |
root@bae40b8ce004:/# python --version | |
Python 3.12.0 | |
root@bae40b8ce004:/# pip install --upgrade pip | |
Requirement already satisfied: pip in /usr/local/lib/python3.12/site-packages (23.2.1) | |
Collecting pip |
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
$ tree | |
. | |
├── su.example | |
└── test.yml | |
0 directories, 2 files | |
$ cat su.example | |
#%PAM-1.0 | |
auth sufficient pam_rootok.so |
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
$ ansible --version | |
ansible [core 2.15.2] | |
config file = None | |
configured module search path = ['/home/user/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'] | |
ansible python module location = /home/user/.local/lib/python3.10/site-packages/ansible | |
ansible collection location = /home/user/.ansible/collections:/usr/share/ansible/collections | |
executable location = /home/user/.local/bin/ansible | |
python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python) | |
jinja version = 3.1.2 | |
libyaml = True |
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
$ pyenv virtualenv 2.7.18 test_ansible_2.8 | |
created virtual environment CPython2.7.18.final.0-64 in 116ms | |
creator CPython2Posix(dest=/home/user/.pyenv/versions/2.7.18/envs/test_ansible_2.8, clear=False, no_vcs_ignore=False, global=False) | |
seeder FromAppData(download=False, pip=bundle, wheel=bundle, setuptools=bundle, via=copy, app_data_dir=/home/user/.local/share/virtualenv) | |
added seed packages: pip==20.3.4, setuptools==44.1.1, wheel==0.37.1 | |
activators NushellActivator,PythonActivator,FishActivator,CShellActivator,PowerShellActivator,BashActivator | |
Looking in links: /tmp/tmpzj_Ydz | |
Requirement already satisfied: setuptools in /home/user/.pyenv/versions/2.7.18/envs/test_ansible_2.8/lib/python2.7/site-packages (44.1.1) | |
Requirement already satisfied: pip in /home/user/.pyenv/versions/2.7.18/envs/test_ansible_2.8/lib/python2.7/site-packages (20.3.4) |