Skip to content

Instantly share code, notes, and snippets.

@ccamacho
Created November 14, 2023 19:53
Show Gist options
  • Save ccamacho/4c17eec52c8201cbfee637e9e89997a7 to your computer and use it in GitHub Desktop.
Save ccamacho/4c17eec52c8201cbfee637e9e89997a7 to your computer and use it in GitHub Desktop.
External TOPSAIL execution
ccamacho@guateque:~/dev/topsail$ ./run_toolbox.py fetch_external_test run ccamacho.automationhub debug main

Using '/tmp/ci-artifacts_20231114' to store the test artifacts.
Using '/tmp/ci-artifacts_20231114/021__fetch_external_test__run' to store extra log files
Using '/tmp/ci-artifacts_20231114/021__fetch_external_test__run/_ansible.log' to store ansible logs.
Using '/tmp/ci-artifacts_20231114/ansible_facts' to store ansible facts.
Using '/home/ccamacho/dev/topsail/config/ansible.cfg' as ansible configuration file.
Using '/tmp/ci-artifacts_20231114/021__fetch_external_test__run/_ansible.log.json' as ansible json log file.
ansible-playbook [core 2.15.6]
  config file = /home/ccamacho/dev/topsail/config/ansible.cfg
  configured module search path = ['/home/ccamacho/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /home/ccamacho/.local/lib/python3.10/site-packages/ansible
  ansible collection location = /home/ccamacho/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/local/bin/ansible-playbook
  python version = 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] (/usr/bin/python3)
  jinja version = 3.1.2
  libyaml = True
Using /home/ccamacho/dev/topsail/config/ansible.cfg as config file
redirecting (type: callback) ansible.builtin.timer to ansible.posix.timer
redirecting (type: callback) ansible.builtin.profile_roles to ansible.posix.profile_roles
Skipping callback 'human_log', as we already have a stdout callback.
JSON_TO_LOGFILE: Storing json logs in /tmp/ci-artifacts_20231114/021__fetch_external_test__run/_ansible.log.json
Skipping callback 'default', as we already have a stdout callback.
Skipping callback 'minimal', as we already have a stdout callback.
Skipping callback 'oneline', as we already have a stdout callback.

PLAYBOOK: tmp_play_021__fetch_external_test__run_dngn1cfa.yaml ********************************************************************
1 plays in /home/ccamacho/dev/topsail/tmp_play_021__fetch_external_test__run_dngn1cfa.yaml

PLAY [Run fetch_external_test role] ***********************************************************************************************
[WARNING]: Failure using method (v2_playbook_on_task_start) in callback plugin (<ansible.plugins.callback.human_log.CallbackModule
object at 0x7fa1620d0610>): 'display_skipped_hosts'
martes 14 noviembre 2023  20:50:12 +0100 (0:00:00.077)       0:00:00.077 ****** 
---

---
roles/fetch_external_test/tasks/main.yml:1
TASK: fetch_external_test : Install the external collection
  - type:	collection
  - name:	ccamacho.automationhub
  - force:	True
  - no_deps:	False
  - requirements_file:	None
  - dest:	None
  - new_collections
    - ccamacho.automationhub:	1.0.1
  - new_roles
  - force_lang:	en_US.UTF-8
  - installed_collections
    - /home/ccamacho/.ansible/collections/ansible_collections
      - ccamacho.automationhub:	1.0.0
    - /home/ccamacho/.local/lib/python3.10/site-packages/ansible_collections
    - /usr/local/lib/python3.10/dist-packages/ansible_collections
  - rc:	0
  - stdout:	Starting galaxy collection install process
Process install dependency map
Starting collection install process
Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collections/artifacts/ccamacho-auomationhub-1.0.1.tar.gz to /home/ccamacho/.ansible/tmp/ansible-local-3127566ieuoq3uh/tmp299a6ve1/ccamacho-automationhub-1.0.1-facmatgo
Installing 'ccamacho.automationhub:1.0.1' to '/home/ccamacho/.ansible/collections/ansible_collections/ccamacho/automationhub'
ccamacho.automationhub:1.0.1 was installed successfully
  - stderr:	
  - cmd_args:	['/usr/local/bin/ansible-galaxy', 'collection', 'install', '--force', 'ccamacho.automationhub']
  - stdout_lines:	['Starting galaxy collection install process', 'Process install dependency map', 'Strting collection install process', 'Downloading https://galaxy.ansible.com/api/v3/plugin/ansible/content/published/collectionsartifacts/ccamacho-automationhub-1.0.1.tar.gz to /home/ccamacho/.ansible/tmp/ansible-local-3127566ieuoq3uh/tmp29a6ve1/ccamacho-automationhub-1.0.1-facmatgo', "Installing 'ccamacho.automationhub:1.0.1' to '/home/ccamacho/.nsible/collections/ansible_collections/ccamacho/automationhub'", 'ccamacho.automationhub:1.0.1 was installed successfully']
  - stderr_lines:	[]
martes 14 noviembre 2023  20:50:16 +0100 (0:00:04.753)       0:00:04.830 ****** 
---

---
roles/fetch_external_test/tasks/main.yml:7
TASK: Run a task from the role'
martes 14 noviembre 2023  20:50:17 +0100 (0:00:00.055)       0:00:04.886 ****** 
---

---
/home/ccamacho/.ansible/collections/ansible_collections/ccamacho/automationhub/roles/debug/tasks/main.yml:1
TASK: ccamacho.automationhub.debug : Print message
msg: ['This is an example message', 'Here it goes: hello.']

PLAY RECAP ************************************************************************************************************************
localhost                  : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   

Playbook run took 0 days, 0 hours, 0 minutes, 4 seconds
martes 14 noviembre 2023  20:50:17 +0100 (0:00:00.086)       0:00:04.972 ****** 
=============================================================================== 
fetch_external_test ----------------------------------------------------- 4.81s
debug ------------------------------------------------------------------- 0.09s
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
total ------------------------------------------------------------------- 4.90s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment