Open ramraj241 opened 6 years ago
upload() function idempotency simply checks to see if existing rule has been uploaded, whereas set() will upload if missing and if already uploaded will compare values to see if a replace is required. Here is a sample call to set_mapping_rule:
- role: set_mapping_rule
tags: ["mapping", "rule", "set"]
set_mapping_rule_category : "OAuth"
set_mapping_rule_name : "SamplePostTokenGeneration"
set_mapping_rule_filename : "{{sample_post_rule}}"
set_mapping_rule_upload_filename: "{{rules_dir}}/{{sample_post_rule}}"
Thanks, i will try to use set_mapping_rule
so i tried above example
name: setting mapping rule hosts: all connection: local roles:
usr/local/bin/ansible-playbook -i @inventories/0-DFLT \@general/set_mapping_rule_1.yml l ***.com -e "filename=test_v3.js filelocation=/opt/scm/udeploy/agent/var/work/wd.atm.1.webseal-devops-tar/wd.atm.1.webseal-devops-tar/scripts/isam9_ansible/MYCIGNA/0-DFLT/INFORMATION_MAPS/test_v3.js force=true" -vvv --vault-password-file=~/.vault_pass.secret | sed 's/\n/\n/g'
The full traceback is:
Traceback (most recent call last):
File "/tmp/ansible_GcETN4/ansible_module_isam.py", line 143, in
PLAY RECAP ** ***com : ok=1 changed=0 unreachable=0 failed=1
Looks like the role is using the function update(isamAppliance, name=name, content=content, check_mode=check_mode, force=force)
. It should be using the set() function. Not sure why that is the case for you?
we have latest role refresh and code refresh as well, no clue what can be done here, is this role working for you guys?
so this role working as expected for you guys at your lab?
Please check that the role in your directory is using the right set() function. The roles git refresh does not always work - might need to double check.
Yes this was working when posted.
Hello, i have questions around upload_mapping_rule, set_mapping_rule