Skip to content
Snippets Groups Projects
  • Rafael Guterres Jeffman's avatar
    6c94fe9b
    tests/sudorule: Don't become or gather_facts and use only true/false · 6c94fe9b
    Rafael Guterres Jeffman authored
    Unless there's a real need to use privileged access or to gather Ansible
    facts upfront, we should always set "become: false" and
    "gather_facts: false". In the case that only a few Ansible facts are
    required, 'ansible.builtin.setup' with 'gather_subset' should be used.
    
    As the YAML 1.2 standard dictates, boolean values should only use 'true'
    or 'false' values.
    
    This patch fixes these issues in the 'sudorule' test suite.
    6c94fe9b
    History
    tests/sudorule: Don't become or gather_facts and use only true/false
    Rafael Guterres Jeffman authored
    Unless there's a real need to use privileged access or to gather Ansible
    facts upfront, we should always set "become: false" and
    "gather_facts: false". In the case that only a few Ansible facts are
    required, 'ansible.builtin.setup' with 'gather_subset' should be used.
    
    As the YAML 1.2 standard dictates, boolean values should only use 'true'
    or 'false' values.
    
    This patch fixes these issues in the 'sudorule' test suite.