site.yml # master playbook
webservers.yml # playbook for webserver tier
dbservers.yml # playbook for dbserver tiersite.yml # master playbook
webservers.yml # playbook for webserver tier
dbservers.yml # playbook for dbserver tier
appservers.yml # playbook for appserver tier
logservers.yml # playbook for logserver tier
otherservers1.yml # playbook for otherservers1 tier
otherservers2.yml # playbook for otherservers2 tier
otherservers3.yml # playbook for otherservers3 tier
otherservers4.yml # playbook for otherservers4 tier
roles/ common/ # this hierarchy represents a "role" tasks/ # main.yml # <-- tasks file can include smaller files if warranted handlers/ # main.yml # <-- handlers file templates/ # <-- files for use with the template resource ntp.conf.j2 # <------- templates end in .j2 files/ # bar.txt # <-- files for use with the copy resource foo.sh # <-- script files for use with the script resource vars/ # main.yml # <-- variables associated with this role defaults/ # main.yml # <-- default lower priority variables for this role meta/ # main.yml # <-- role dependenciesansible.cfg
.ansible/inventory
playbooks/
pb.yml
roles/# roles...
host_vars/
# host_vars...
group_vars/
# group_vars...
fatal: [ptl01a0fap006]: FAILED! => {"failed": true, "msg": "The conditional check ''{{ ansible_user_id }}' != '{{ wmadmin }}'' failed. The error was: error while evaluating conditional ('{{ ansible_user_id }}' != '{{ wmadmin }}'): 'wmadmin' is undefined\n\nThe error appears to have been in '/manh/roles/role_utility_preplay_validation/tasks/main.yml': line 2, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n---\n- name: Ensure uid is appropriate for {{ inventory_hostname_short }}\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
- name: database param_def select# Initial select statement to see if db changes are required tags: db include: roles/role_utility_sqlplus/tasks/main.yml vars: query_type: "select" table: "param_def" filename: "dbselect_paramdef_mhe.sql"ANSIBLE_ROLES_PATH=your_path ansible-playbook site.yml