Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
ansible
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • OpenEdx
  • ansible
  • Repository

Switch branch/tag
  • ansible
  • library
  • utilities
  • fail
Find file
BlameHistoryPermalink
  • Jim Kleckner's avatar
    Fix documentation example for the fail module · edca1d69
    The example for the fail module doesn't work:
      http://www.ansibleworks.com/docs/modules.html#fail
    
    The current text shows:
        - fail: msg="The system may not be provisioned according to the CMDB status."
          when: "{{ cmdb_status }} != 'to-be-staged'"
    
    The "when" documentation indicates that the argument is already a Jinja2
    expression:
      http://www.ansibleworks.com/docs/playbooks_conditionals.html#the-when-statement
    
    Thus, the following is
          when: cmdb_status != "to-be-staged"
    
    is preferred even though the following could work but generates a
    deprecation warning:
          when: {{cmdb_status != "to-be-staged"}}
    Jim Kleckner committed Dec 26, 2013
    edca1d69
fail 1.41 KB
Edit