redhat-cop / aap_configuration_extended

providing extended functionality that is not in aap_configuration
GNU General Public License v3.0
2 stars 8 forks source link

Filetree_create role fails when run against AAP instance containing an organization with a forward slash in its name #32

Open a083138 opened 1 day ago

a083138 commented 1 day ago

Summary

When running the filetree_create role against my AAP instance, I have a organization name with a forward slash in it (Network - Router/Switch). This forward slash is causing the role execution to fail.

During the "Add current credentials to the /credentials output yaml file in /tmp/filetree_output" task the job fails with the error "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"

I believe the issue is that it is trying to look for the folder "Network - Router_Switch/credentials" which does not exist. Instead the role generates the folder "Network - Router/Switch/credentials" as it thinks the forward slash in the name of the organization is a sub directory.

Issue Type

Ansible, Collection, Controller details

ansible --version
ansible [core 2.17.4]
  config file = None
  configured module search path = ['/Users/a083138/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ansible
  ansible collection location = /Users/a083138/.ansible/collections:/usr/share/ansible/collections
  executable location = /Library/Frameworks/Python.framework/Versions/3.11/bin/ansible
  python version = 3.11.2 (v3.11.2:878ead1ac1, Feb  7 2023, 10:02:41) [Clang 13.0.0 (clang-1300.0.29.30)] (/Library/Frameworks/Python.framework/Versions/3.11/bin/python3.11)
  jinja version = 3.1.2
  libyaml = True

ansible-galaxy collection list
# /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/ansible_collections
Collection                               Version
---------------------------------------- -------
amazon.aws                               8.2.1  
ansible.netcommon                        6.1.3  
ansible.posix                            1.5.4  
ansible.utils                            4.1.0  
ansible.windows                          2.5.0  
arista.eos                               9.0.0  
awx.awx                                  24.6.1 
azure.azcollection                       2.7.0  
check_point.mgmt                         5.2.3  
chocolatey.chocolatey                    1.5.1  
cisco.aci                                2.10.1 
cisco.asa                                5.0.1  
cisco.dnac                               6.18.0 
cisco.intersight                         2.0.17 
cisco.ios                                8.0.0  
cisco.iosxr                              9.0.0  
cisco.ise                                2.9.3  
cisco.meraki                             2.18.1 
cisco.mso                                2.9.0  
cisco.nxos                               8.1.0  
cisco.ucs                                1.11.0 
cloud.common                             3.0.0  
cloudscale_ch.cloud                      2.4.0  
community.aws                            8.0.0  
community.ciscosmb                       1.0.9  
community.crypto                         2.22.0 
community.digitalocean                   1.27.0 
community.dns                            3.0.4  
community.docker                         3.12.1 
community.general                        9.4.0  
community.grafana                        1.9.1  
community.hashi_vault                    6.2.0  
community.hrobot                         2.0.1  
community.library_inventory_filtering_v1 1.0.1  
community.libvirt                        1.3.0  
community.mongodb                        1.7.6  
community.mysql                          3.10.3 
community.network                        5.0.3  
community.okd                            3.0.1  
community.postgresql                     3.5.0  
community.proxysql                       1.6.0  
community.rabbitmq                       1.3.0  
community.routeros                       2.19.0 
community.sap_libs                       1.4.2  
community.sops                           1.9.0  
community.vmware                         4.7.0  
community.windows                        2.3.0  
community.zabbix                         2.5.1  
containers.podman                        1.15.4 
cyberark.conjur                          1.3.0  
cyberark.pas                             1.0.27 
dellemc.enterprise_sonic                 2.5.0  
dellemc.openmanage                       9.6.0  
dellemc.powerflex                        2.5.0  
dellemc.unity                            2.0.0  
f5networks.f5_modules                    1.30.1 
fortinet.fortimanager                    2.7.0  
fortinet.fortios                         2.3.7  
frr.frr                                  2.0.2  
google.cloud                             1.4.1  
grafana.grafana                          5.5.0  
hetzner.hcloud                           3.1.1  
ibm.qradar                               3.0.0  
ibm.spectrum_virtualize                  2.0.0  
ibm.storage_virtualize                   2.4.1  
ieisystem.inmanage                       2.0.0  
infinidat.infinibox                      1.4.5  
infoblox.nios_modules                    1.6.1  
inspur.ispim                             2.2.3  
inspur.sm                                2.3.0  
junipernetworks.junos                    8.0.0  
kaytus.ksmanage                          1.2.2  
kubernetes.core                          3.2.0  
kubevirt.core                            1.5.0  
lowlydba.sqlserver                       2.3.3  
microsoft.ad                             1.7.1  
netapp.cloudmanager                      21.22.1
netapp.ontap                             22.12.0
netapp.storagegrid                       21.12.0
netapp_eseries.santricity                1.4.0  
netbox.netbox                            3.19.1 
ngine_io.cloudstack                      2.4.0  
ngine_io.exoscale                        1.1.0  
openstack.cloud                          2.2.0  
openvswitch.openvswitch                  2.1.1  
ovirt.ovirt                              3.2.0  
purestorage.flasharray                   1.31.1 
purestorage.flashblade                   1.18.0 
sensu.sensu_go                           1.14.0 
splunk.es                                3.0.0  
t_systems_mms.icinga_director            2.0.1  
telekom_mms.icinga_director              2.1.2  
theforeman.foreman                       4.2.0  
vmware.vmware                            1.5.0  
vmware.vmware_rest                       3.1.0  
vultr.cloud                              1.13.0 
vyos.vyos                                4.1.0  
wti.remote                               1.0.8  

# /Users/a083138/.ansible/collections/ansible_collections
Collection                               Version
---------------------------------------- -------
ansible.controller                       4.4.2  
ansible.tower                            3.8.6  
awx.awx                                  24.6.1 
config_automation.ee_builder             1.0.8  
containers.podman                        1.10.1 
infra.controller_configuration           2.11.0 

Controller version
Ansible Automation Platform Controller 4.4.2

OS / ENVIRONMENT

AAP OS Version: RHEL 18.10

Desired Behavior

Role builds out file/folder structure with no failures

Actual Behavior

$ ansible-playbook -i localhost, filetree_create.yml -e '{controller_validate_certs: false, controller_hostname: ansible1mp.prci.com:443, controller_username: XXXXXX, controller_password: XXXXXXXXX}'

***Some output cut to fit in the maximum character limit of this survey***

TASK [infra.controller_configuration.filetree_create : Create the <ORGANIZATION_NAME>/credentials output directory for credentials in /tmp/filetree_output] ***********************************************************
changed: [localhost] => (item=/tmp/filetree_output/APIC4E/credentials)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials)
changed: [localhost] => (item=/tmp/filetree_output/Network - Router/Switch/credentials)

TASK [infra.controller_configuration.filetree_create : Add current credentials to the <ORGANIZATION_NAME>/credentials output yaml file in /tmp/filetree_output] *******************************************************
changed: [localhost] => (item=/tmp/filetree_output/APIC4E/credentials/401_Service Account for ZAPI004D.yaml)
changed: [localhost] => (item=/tmp/filetree_output/APIC4E/credentials/402_apic4e-authentication.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/10_Cloud.redhat.com.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/12_Ansible Admin - Dev.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/13_Ansible Admin - Prod.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/54_AAP Prod Read Only Admin Creds.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/55_AAP Prod Read Only Admin Token.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/62_Automation Generated Published Repository.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/63_Ansible Vault Key.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/101_Ansible ID zanb001p.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/188_Ansible Vaulted zanb001p.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/230_AAP readonlyadmin Token.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/234_CAPT - control node ssh key test.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/326_readonlyadmin token.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/348_Shared Git Service Account ZANB001P.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/382_Bobs zid.yaml)
changed: [localhost] => (item=/tmp/filetree_output/CAPT/credentials/405_Ansible Admin Web UI_API - Prod.yaml)
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/132_A093001.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "f745322a85743d7128e51dc93f1cb4ce6ad35815", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:17.534748Z", "credential_type": 1, "description": "", "id": 132, "inputs": {"username": "sa093001"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:28.247414Z", "name": "A093001", "organization": 15, "related": {"access_list": "/api/v2/credentials/132/access_list/", "activity_stream": "/api/v2/credentials/132/activity_stream/", "copy": "/api/v2/credentials/132/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/132/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/132/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/132/owner_teams/", "owner_users": "/api/v2/credentials/132/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1903, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1905, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1904, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/132/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/133_a128637.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "b006d32ff6b8fa14e3f9ad6a82c2f811e9a81a6c", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:17.864873Z", "credential_type": 1, "description": "", "id": 133, "inputs": {"password": "ASK", "username": "sa128637"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:28.647840Z", "name": "a128637", "organization": 15, "related": {"access_list": "/api/v2/credentials/133/access_list/", "activity_stream": "/api/v2/credentials/133/activity_stream/", "copy": "/api/v2/credentials/133/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/133/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/133/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/133/owner_teams/", "owner_users": "/api/v2/credentials/133/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1906, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1908, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1907, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/133/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/134_Cisco CML Creds(Machine).yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "23de4fbc18d1102678b73d10f888d6cad1666fec", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:18.192026Z", "credential_type": 1, "description": "", "id": 134, "inputs": {"username": "cmluser1"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:29.054474Z", "name": "Cisco CML Creds(Machine)", "organization": 15, "related": {"access_list": "/api/v2/credentials/134/access_list/", "activity_stream": "/api/v2/credentials/134/activity_stream/", "copy": "/api/v2/credentials/134/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/134/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/134/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/134/owner_teams/", "owner_users": "/api/v2/credentials/134/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1909, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1911, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1910, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/134/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/135_Cisco DNA Center.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "d474834ec765ef2b7f73ef562357ba55b9696035", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:18.520831Z", "credential_type": 1, "description": "", "id": 135, "inputs": {"become_method": "", "become_username": "", "password": "$encrypted$", "username": "admin"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-05-03T17:19:07.853300Z", "name": "Cisco DNA Center", "organization": 15, "related": {"access_list": "/api/v2/credentials/135/access_list/", "activity_stream": "/api/v2/credentials/135/activity_stream/", "copy": "/api/v2/credentials/135/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/135/input_sources/", "modified_by": "/api/v2/users/37/", "object_roles": "/api/v2/credentials/135/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/135/owner_teams/", "owner_users": "/api/v2/credentials/135/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "Joshua", "id": 37, "last_name": "Moore", "username": "A133909"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1912, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1914, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1913, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/135/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/136_GH AuthToken.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "e93e32239c223ee554cc1de98c710d83cd69df58", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:18.848083Z", "credential_type": 2, "description": "", "id": 136, "inputs": {"username": "a093001"}, "kind": "scm", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:29.803858Z", "name": "GH AuthToken", "organization": 15, "related": {"access_list": "/api/v2/credentials/136/access_list/", "activity_stream": "/api/v2/credentials/136/activity_stream/", "copy": "/api/v2/credentials/136/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/2/", "input_sources": "/api/v2/credentials/136/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/136/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/136/owner_teams/", "owner_users": "/api/v2/credentials/136/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 2, "name": "Source Control"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1915, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1917, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1916, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/136/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/137_GigamonAdmin.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "f243aeeb9d4fda1521772a78b47044c4fcf45b2c", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:19.182820Z", "credential_type": 1, "description": "", "id": 137, "inputs": {"username": "zgmon01p"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:30.110617Z", "name": "GigamonAdmin", "organization": 15, "related": {"access_list": "/api/v2/credentials/137/access_list/", "activity_stream": "/api/v2/credentials/137/activity_stream/", "copy": "/api/v2/credentials/137/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/137/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/137/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/137/owner_teams/", "owner_users": "/api/v2/credentials/137/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1918, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1920, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1919, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/137/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/138_Network Cisco Z-ID.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "0ce669e620ee0989b6c90fb3ee9263e7417e8f62", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:19.513726Z", "credential_type": 1, "description": "", "id": 138, "inputs": {"become_method": "", "become_username": "", "password": "$encrypted$", "username": "zcwk001p"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-27T13:19:45.968473Z", "name": "Network Cisco Z-ID", "organization": 15, "related": {"access_list": "/api/v2/credentials/138/access_list/", "activity_stream": "/api/v2/credentials/138/activity_stream/", "copy": "/api/v2/credentials/138/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/138/input_sources/", "modified_by": "/api/v2/users/37/", "object_roles": "/api/v2/credentials/138/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/138/owner_teams/", "owner_users": "/api/v2/credentials/138/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "Joshua", "id": 37, "last_name": "Moore", "username": "A133909"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1921, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1923, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1922, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/138/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/139_Network Router_Switch.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "1fab56b93ec88df3a8104f1874c0fdebcacf298c", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:19.843077Z", "credential_type": 1, "description": "", "id": 139, "inputs": {"username": "socrates"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:30.796816Z", "name": "Network Router/Switch", "organization": 15, "related": {"access_list": "/api/v2/credentials/139/access_list/", "activity_stream": "/api/v2/credentials/139/activity_stream/", "copy": "/api/v2/credentials/139/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/139/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/139/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/139/owner_teams/", "owner_users": "/api/v2/credentials/139/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1924, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1926, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1925, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/139/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/140_Network WLC Creds.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "e60c3f448681339ce4bf69493446eeb2f8c38de5", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:20.172798Z", "credential_type": 1, "description": "", "id": 140, "inputs": {"username": "zcwk001p"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:31.113247Z", "name": "Network WLC Creds", "organization": 15, "related": {"access_list": "/api/v2/credentials/140/access_list/", "activity_stream": "/api/v2/credentials/140/activity_stream/", "copy": "/api/v2/credentials/140/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/140/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/140/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/140/owner_teams/", "owner_users": "/api/v2/credentials/140/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1927, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1929, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1928, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/140/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/141_Remote Branch.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "d7862c82bf136ad595851123cdbef406919e61ae", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:20.502340Z", "credential_type": 2, "description": "", "id": 141, "inputs": {"password": "$encrypted$", "username": "a133909"}, "kind": "scm", "kubernetes": false, "managed": false, "modified": "2023-04-07T15:29:25.941296Z", "name": "Remote Branch", "organization": 15, "related": {"access_list": "/api/v2/credentials/141/access_list/", "activity_stream": "/api/v2/credentials/141/activity_stream/", "copy": "/api/v2/credentials/141/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/2/", "input_sources": "/api/v2/credentials/141/input_sources/", "modified_by": "/api/v2/users/37/", "object_roles": "/api/v2/credentials/141/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/141/owner_teams/", "owner_users": "/api/v2/credentials/141/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 2, "name": "Source Control"}, "modified_by": {"first_name": "Joshua", "id": 37, "last_name": "Moore", "username": "A133909"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1930, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1932, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1931, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/141/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/142_Switch Validation Credentials.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "245fda55b5676a3b15b0aa7ae228b8e5379b1a28", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:20.832050Z", "credential_type": 1, "description": "", "id": 142, "inputs": {"password": "ASK", "username": "sa083138"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:31.928506Z", "name": "Switch Validation Credentials", "organization": 15, "related": {"access_list": "/api/v2/credentials/142/access_list/", "activity_stream": "/api/v2/credentials/142/activity_stream/", "copy": "/api/v2/credentials/142/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/142/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/142/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/142/owner_teams/", "owner_users": "/api/v2/credentials/142/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1933, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1935, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1934, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/142/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/143_Wireless Automation GitHub Token.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "2f013bac67a1f7e17ffb8919c19647b223c024a3", "current_credentials_asset_value": {"cloud": false, "created": "2023-04-06T14:56:21.175386Z", "credential_type": 2, "description": "", "id": 143, "inputs": {"username": "a123235"}, "kind": "scm", "kubernetes": false, "managed": false, "modified": "2023-04-06T14:57:32.329335Z", "name": "Wireless Automation GitHub Token", "organization": 15, "related": {"access_list": "/api/v2/credentials/143/access_list/", "activity_stream": "/api/v2/credentials/143/activity_stream/", "copy": "/api/v2/credentials/143/copy/", "created_by": "/api/v2/users/1/", "credential_type": "/api/v2/credential_types/2/", "input_sources": "/api/v2/credentials/143/input_sources/", "modified_by": "/api/v2/users/1/", "object_roles": "/api/v2/credentials/143/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/143/owner_teams/", "owner_users": "/api/v2/credentials/143/owner_users/"}, "summary_fields": {"created_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "credential_type": {"description": "", "id": 2, "name": "Source Control"}, "modified_by": {"first_name": "", "id": 1, "last_name": "", "username": "admin"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 1936, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 1938, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 1937, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/143/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/236_RB_Git_Token.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "c45fd395b7f8b147364a0dcf5bf7ac8d50fc5b2a", "current_credentials_asset_value": {"cloud": false, "created": "2023-09-18T15:05:08.409306Z", "credential_type": 11, "description": "", "id": 236, "inputs": {"token": "$encrypted$"}, "kind": "github_token", "kubernetes": false, "managed": false, "modified": "2023-09-18T15:05:08.409320Z", "name": "RB_Git_Token", "organization": 15, "related": {"access_list": "/api/v2/credentials/236/access_list/", "activity_stream": "/api/v2/credentials/236/activity_stream/", "copy": "/api/v2/credentials/236/copy/", "created_by": "/api/v2/users/148/", "credential_type": "/api/v2/credential_types/11/", "input_sources": "/api/v2/credentials/236/input_sources/", "modified_by": "/api/v2/users/148/", "object_roles": "/api/v2/credentials/236/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/236/owner_teams/", "owner_users": "/api/v2/credentials/236/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "credential_type": {"description": "", "id": 11, "name": "GitHub Personal Access Token"}, "modified_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 4449, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 4451, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 4450, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/236/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/238_Remote Branch Git.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "8ae3d318e605030beadee6f19bd0587ba306b7fb", "current_credentials_asset_value": {"cloud": false, "created": "2023-10-02T20:34:41.422630Z", "credential_type": 11, "description": "", "id": 238, "inputs": {"token": "$encrypted$"}, "kind": "github_token", "kubernetes": false, "managed": false, "modified": "2024-10-14T12:35:23.890766Z", "name": "Remote Branch Git", "organization": 15, "related": {"access_list": "/api/v2/credentials/238/access_list/", "activity_stream": "/api/v2/credentials/238/activity_stream/", "copy": "/api/v2/credentials/238/copy/", "created_by": "/api/v2/users/148/", "credential_type": "/api/v2/credential_types/11/", "input_sources": "/api/v2/credentials/238/input_sources/", "modified_by": "/api/v2/users/148/", "object_roles": "/api/v2/credentials/238/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/238/owner_teams/", "owner_users": "/api/v2/credentials/238/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "credential_type": {"description": "", "id": 11, "name": "GitHub Personal Access Token"}, "modified_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 4493, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 4495, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 4494, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/238/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/269_ZLTM004P.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "00509cf73761300e57da64c5f865666fb90fbb12", "current_credentials_asset_value": {"cloud": false, "created": "2023-12-20T18:39:15.398636Z", "credential_type": 4, "description": "", "id": 269, "inputs": {"authorize": false, "password": "$encrypted$", "username": "ZLTM004P"}, "kind": "net", "kubernetes": false, "managed": false, "modified": "2023-12-20T18:39:15.398648Z", "name": "ZLTM004P", "organization": 15, "related": {"access_list": "/api/v2/credentials/269/access_list/", "activity_stream": "/api/v2/credentials/269/activity_stream/", "copy": "/api/v2/credentials/269/copy/", "created_by": "/api/v2/users/54/", "credential_type": "/api/v2/credential_types/4/", "input_sources": "/api/v2/credentials/269/input_sources/", "modified_by": "/api/v2/users/54/", "object_roles": "/api/v2/credentials/269/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/269/owner_teams/", "owner_users": "/api/v2/credentials/269/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Andrew", "id": 54, "last_name": "Wymore", "username": "A152051"}, "credential_type": {"description": "", "id": 4, "name": "Network"}, "modified_by": {"first_name": "Andrew", "id": 54, "last_name": "Wymore", "username": "A152051"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 4998, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 5000, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 4999, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/269/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/275_Property Col.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "8b0d9c5e7cd6b01a9172b12ca455d17a413338b0", "current_credentials_asset_value": {"cloud": false, "created": "2024-01-12T19:08:55.441269Z", "credential_type": 1, "description": "", "id": 275, "inputs": {"become_method": "", "become_username": "", "password": "$encrypted$", "username": "admin"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2024-01-12T19:08:55.441281Z", "name": "Property Col", "organization": 15, "related": {"access_list": "/api/v2/credentials/275/access_list/", "activity_stream": "/api/v2/credentials/275/activity_stream/", "copy": "/api/v2/credentials/275/copy/", "created_by": "/api/v2/users/44/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/275/input_sources/", "modified_by": "/api/v2/users/44/", "object_roles": "/api/v2/credentials/275/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/275/owner_teams/", "owner_users": "/api/v2/credentials/275/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Adam", "id": 44, "last_name": "Saunier", "username": "A152049"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "Adam", "id": 44, "last_name": "Saunier", "username": "A152049"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 5189, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 5191, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 5190, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/275/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/290_A173736.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "c9d36897c10f39fc27831aa53e6e472417bd5424", "current_credentials_asset_value": {"cloud": false, "created": "2024-04-22T20:21:15.233800Z", "credential_type": 1, "description": "AK A-ID", "id": 290, "inputs": {"become_method": "", "become_username": "", "password": "$encrypted$", "username": "a173736"}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2024-04-22T20:21:15.233811Z", "name": "A173736", "organization": 15, "related": {"access_list": "/api/v2/credentials/290/access_list/", "activity_stream": "/api/v2/credentials/290/activity_stream/", "copy": "/api/v2/credentials/290/copy/", "created_by": "/api/v2/users/156/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/290/input_sources/", "modified_by": "/api/v2/users/156/", "object_roles": "/api/v2/credentials/290/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/290/owner_teams/", "owner_users": "/api/v2/credentials/290/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Andrew", "id": 156, "last_name": "Kresic", "username": "A173736"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "Andrew", "id": 156, "last_name": "Kresic", "username": "A173736"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 5778, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 5780, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 5779, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/290/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/380_RB-Meraki API.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "3355d68bbdc01049bb51c47e551104d49c83f70e", "current_credentials_asset_value": {"cloud": false, "created": "2024-08-01T15:14:45.400755Z", "credential_type": 1, "description": "", "id": 380, "inputs": {"become_method": "", "become_username": "", "password": "$encrypted$", "username": ""}, "kind": "ssh", "kubernetes": false, "managed": false, "modified": "2024-08-05T18:07:08.489555Z", "name": "RB-Meraki API", "organization": 15, "related": {"access_list": "/api/v2/credentials/380/access_list/", "activity_stream": "/api/v2/credentials/380/activity_stream/", "copy": "/api/v2/credentials/380/copy/", "created_by": "/api/v2/users/148/", "credential_type": "/api/v2/credential_types/1/", "input_sources": "/api/v2/credentials/380/input_sources/", "modified_by": "/api/v2/users/148/", "object_roles": "/api/v2/credentials/380/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/380/owner_teams/", "owner_users": "/api/v2/credentials/380/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "credential_type": {"description": "", "id": 1, "name": "Machine"}, "modified_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 6433, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 6435, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 6434, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/380/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/408_RB Network GitHub Access.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "6b43e2d9a52e4c44967c9aeadcef3f35dc13ca67", "current_credentials_asset_value": {"cloud": false, "created": "2024-10-15T15:43:52.787316Z", "credential_type": 2, "description": "Service Account Github Access", "id": 408, "inputs": {"password": "$encrypted$", "username": "ZANB002P_prog"}, "kind": "scm", "kubernetes": false, "managed": false, "modified": "2024-10-15T15:43:52.787326Z", "name": "RB Network GitHub Access", "organization": 15, "related": {"access_list": "/api/v2/credentials/408/access_list/", "activity_stream": "/api/v2/credentials/408/activity_stream/", "copy": "/api/v2/credentials/408/copy/", "created_by": "/api/v2/users/148/", "credential_type": "/api/v2/credential_types/2/", "input_sources": "/api/v2/credentials/408/input_sources/", "modified_by": "/api/v2/users/148/", "object_roles": "/api/v2/credentials/408/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/408/owner_teams/", "owner_users": "/api/v2/credentials/408/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "credential_type": {"description": "", "id": 2, "name": "Source Control"}, "modified_by": {"first_name": "Igor", "id": 148, "last_name": "Matsenko", "username": "A143730"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 7038, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 7040, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 7039, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/408/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/422_NTOC Automation Git Service account.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "336b2ab529c2b4d098205d89c57cdb0723bf7b35", "current_credentials_asset_value": {"cloud": false, "created": "2024-11-01T19:42:51.957875Z", "credential_type": 2, "description": "", "id": 422, "inputs": {"password": "$encrypted$", "username": "ZNMGT15P_prog"}, "kind": "scm", "kubernetes": false, "managed": false, "modified": "2024-11-01T19:42:51.957885Z", "name": "NTOC Automation Git Service account", "organization": 15, "related": {"access_list": "/api/v2/credentials/422/access_list/", "activity_stream": "/api/v2/credentials/422/activity_stream/", "copy": "/api/v2/credentials/422/copy/", "created_by": "/api/v2/users/54/", "credential_type": "/api/v2/credential_types/2/", "input_sources": "/api/v2/credentials/422/input_sources/", "modified_by": "/api/v2/users/54/", "object_roles": "/api/v2/credentials/422/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/422/owner_teams/", "owner_users": "/api/v2/credentials/422/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Andrew", "id": 54, "last_name": "Wymore", "username": "A152051"}, "credential_type": {"description": "", "id": 2, "name": "Source Control"}, "modified_by": {"first_name": "Andrew", "id": 54, "last_name": "Wymore", "username": "A152051"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 7209, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 7211, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 7210, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/422/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}

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

Please give some details of what is actually happening. Include a [minimum complete verifiable example] with:



- configuration file / list
N/a
- error:
failed: [localhost] (item=/tmp/filetree_output/Network - Router_Switch/credentials/422_NTOC Automation Git Service account.yaml) => {"ansible_loop_var": "current_credentials_asset_value", "changed": false, "checksum": "336b2ab529c2b4d098205d89c57cdb0723bf7b35", "current_credentials_asset_value": {"cloud": false, "created": "2024-11-01T19:42:51.957875Z", "credential_type": 2, "description": "", "id": 422, "inputs": {"password": "$encrypted$", "username": "ZNMGT15P_prog"}, "kind": "scm", "kubernetes": false, "managed": false, "modified": "2024-11-01T19:42:51.957885Z", "name": "NTOC Automation Git Service account", "organization": 15, "related": {"access_list": "/api/v2/credentials/422/access_list/", "activity_stream": "/api/v2/credentials/422/activity_stream/", "copy": "/api/v2/credentials/422/copy/", "created_by": "/api/v2/users/54/", "credential_type": "/api/v2/credential_types/2/", "input_sources": "/api/v2/credentials/422/input_sources/", "modified_by": "/api/v2/users/54/", "object_roles": "/api/v2/credentials/422/object_roles/", "organization": "/api/v2/organizations/15/", "owner_teams": "/api/v2/credentials/422/owner_teams/", "owner_users": "/api/v2/credentials/422/owner_users/"}, "summary_fields": {"created_by": {"first_name": "Andrew", "id": 54, "last_name": "Wymore", "username": "A152051"}, "credential_type": {"description": "", "id": 2, "name": "Source Control"}, "modified_by": {"first_name": "Andrew", "id": 54, "last_name": "Wymore", "username": "A152051"}, "object_roles": {"admin_role": {"description": "Can manage all aspects of the credential", "id": 7209, "name": "Admin"}, "read_role": {"description": "May view settings for the credential", "id": 7211, "name": "Read"}, "use_role": {"description": "Can use the credential in a job template", "id": 7210, "name": "Use"}}, "organization": {"description": "", "id": 15, "name": "Network - Router/Switch"}, "owners": [{"description": "", "id": 15, "name": "Network - Router/Switch", "type": "organization", "url": "/api/v2/organizations/15/"}], "user_capabilities": {"copy": true, "delete": true, "edit": true, "use": true}}, "type": "credential", "url": "/api/v2/credentials/422/"}, "msg": "Destination directory /tmp/filetree_output/Network - Router_Switch/credentials does not exist"}

## STEPS TO REPRODUCE

Run playbook to call role with 'credentials' set as input_tag against AAP instance with an organization that contains a forward slash in the name.
djdanielsson commented 1 day ago

filetree no longer in this repo.