Unofficial python wrapper over Ansible Automation Platform REST API
Project description
Ansible Automation Platform Python Module
This is unofficial wrapper for Ansible Automation Platform (AAP) API.
To see an example how this module can be used please view main.py
Executing jobs from CLI
Python module can be invoked directly to execute job in aap and report status to terminal.
python3 -m aap run-job --id <job-id> -f
Example run
$ python3 -m aap --id 7848 -l sw01-dist.itdev --insecure run-job -f
Searching job 7848
Job: Juniper - gather facts
limit: ['sw01-dist.itdev']
extra variables: {}
job id: 2161058
----------------------------------------
Job is running
[DEPRECATION WARNING]: COMMAND_WARNINGS option, the command warnings feature is
being removed. This feature will be removed from ansible-core in version 2.14.
Deprecation warnings can be disabled by setting deprecation_warnings=False in
ansible.cfg.
[DEPRECATION WARNING]: [defaults]callback_whitelist option, normalizing names
to new standard, use callbacks_enabled instead. This feature will be removed
from ansible-core in version 2.15. Deprecation warnings can be disabled by
setting deprecation_warnings=False in ansible.cfg.
PLAY [all] *********************************************************************
TASK [Set tower run variable] **************************************************
ok: [sw01-dist.itdev]
TASK [Set manip if oob] ********************************************************
skipping: [sw01-dist.itdev]
TASK [Check inbound management IP] *********************************************
skipping: [sw01-dist.itdev]
TASK [Check inbound management IP] *********************************************
ok: [sw01-dist.itdev]
TASK [Set username] ************************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
ok: [sw01-dist.itdev]
TASK [Check management IP] *****************************************************
skipping: [sw01-dist.itdev]
TASK [Check management IP] *****************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
skipping: [sw01-dist.itdev]
TASK [set_fact] ****************************************************************
skipping: [sw01-dist.itdev]
TASK [Set connection variables] ************************************************
ok: [sw01-dist.itdev]
TASK [Get Facts] ***************************************************************
ok: [sw01-dist.itdev]
Playbook run took 0 days, 0 hours, 0 minutes, 12 seconds
PLAY RECAP *********************************************************************
sw01-dist.itdev : ok=5 changed=0 unreachable=0 failed=0 skipped=11 rescued=0 ignored=0
Playbook run took 0 days, 0 hours, 0 minutes, 12 seconds
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-aap-0.0.6.tar.gz
(16.4 kB
view hashes)
Built Distribution
python_aap-0.0.6-py3-none-any.whl
(14.7 kB
view hashes)
Close
Hashes for python_aap-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74054c0a4972afe3859f32cd3af4c6841f4a9b271af58d0a6ff27345b495d8e6 |
|
MD5 | 1c2c0e6150805dd5c604d228fcf52c4a |
|
BLAKE2b-256 | 8ff68f8ebebbddf13452f74934172b7151ca62240421ddf6b26733293d0aa169 |