Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #task file for conf_local
- task:
- - name: "checking rules_local file"
- var_prompt:
- - name: creation
- prompt: "no rules_local file and/or params_local exist,should we creat an empty one ? [Y/n]"
- private: no
- with_items:
- - rules
- - params
- when: {{inventory_hostname}}_{{item}}_local.stat.exists == false
- - name: "creating _local file"
- file:
- path: /etc/ansible/roles/conf_local/files/{{inventory_hostname}}_{{item}}_local
- state: touch
- delegate_to: localhost
- when: creation == "y"
- - name: "Copie des fichiers _local"
- copy:
- src: inventory_hostname_item_local
- dest: /etc/shorewall/{{item}}_local
- with_items:
- - rules
- - params
- when: {{inventory_hostname}}_{{item}}_local.stat.exist == true
- ==============================================================================================================================
- ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
- The error appears to be in '/etc/ansible/roles/conf_local/tasks/main.yml': line 3, column 4, but may
- be elsewhere in the file depending on the exact syntax problem.
- The offending line appears to be:
- # tasks file for conf_local
- - name: "checking rules_local file"
- ^ here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement