Advertisement
Guest User

Untitled

a guest
Feb 27th, 2020
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. #task file for conf_local
  2. task:
  3. - name: "checking rules_local file"
  4. var_prompt:
  5. - name: creation
  6. prompt: "no rules_local file and/or params_local exist,should we creat an empty one ? [Y/n]"
  7. private: no
  8. with_items:
  9. - rules
  10. - params
  11. when: {{inventory_hostname}}_{{item}}_local.stat.exists == false
  12. - name: "creating _local file"
  13. file:
  14. path: /etc/ansible/roles/conf_local/files/{{inventory_hostname}}_{{item}}_local
  15. state: touch
  16. delegate_to: localhost
  17. when: creation == "y"
  18. - name: "Copie des fichiers _local"
  19. copy:
  20. src: inventory_hostname_item_local
  21. dest: /etc/shorewall/{{item}}_local
  22. with_items:
  23. - rules
  24. - params
  25. when: {{inventory_hostname}}_{{item}}_local.stat.exist == true
  26.  
  27. ==============================================================================================================================
  28.  
  29. ERROR! no action detected in task. This often indicates a misspelled module name, or incorrect module path.
  30.  
  31. The error appears to be in '/etc/ansible/roles/conf_local/tasks/main.yml': line 3, column 4, but may
  32. be elsewhere in the file depending on the exact syntax problem.
  33.  
  34. The offending line appears to be:
  35.  
  36. # tasks file for conf_local
  37. - name: "checking rules_local file"
  38. ^ here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement