Skip to content

Instantly share code, notes, and snippets.

@jctanner
Created November 8, 2019 17:35
Show Gist options
  • Save jctanner/8e2e5bb6ef485aeab0bc17eff2d6cb38 to your computer and use it in GitHub Desktop.
Save jctanner/8e2e5bb6ef485aeab0bc17eff2d6cb38 to your computer and use it in GitHub Desktop.
ansible minimal
(venv) [jtanner@jtw530 ansible-bare]$ cat galaxy-plugins.sh
#!/bin/bash
rm -rf strace.out
rm -rf ansible_collections
mkdir strace.out
STRACE="strace -s 100000 -ffttvo strace.out/pid"
$STRACE ansible-galaxy collection install -p ansible_collections newswangerd.collection_demo
fgrep -e 'openat(' -e 'stat(' strace.out/* | fgrep 'lib/ansible' | fgrep -v '__pycache__' | fgrep -v '__init__' | cut -d\" -f2 | egrep 'py$' | sort -u | fgrep -e 'lib/ansible/plugins' -e 'lib/ansible/module'
(venv) [jtanner@jtw530 ansible-bare]$ ./galaxy-plugins.sh
[WARNING]: The specified collections path '/home/jtanner/workspace/scratch/ansible-bare/ansible_collections' is not part of the configured Ansible collections paths '/home/jtanner/.ansible/collections:/usr/share/ansible/collections'. The installed collection won't be
picked up in an Ansible run.
Process install dependency map
Starting collection install process
Installing 'newswangerd.collection_demo:1.0.10' to '/home/jtanner/workspace/scratch/ansible-bare/ansible_collections/newswangerd/collection_demo'
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/ansible_release.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/basic.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/_collections_compat.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/collections.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/file.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/_json_compat.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/json.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/parameters.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/process.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/sys_info.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/text/converters.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/text/formatters.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/_utils.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/common/validation.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/distro/_distro.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/parsing/convert_bool.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/pycompat24.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/_text.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/module_utils/urls.py
/home/jtanner/workspace/scratch/ansible-bare/ansible/lib/ansible/plugins/loader.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment