Skip to content
Snippets Groups Projects
Select Git revision
  • 3b19761cc6a1fc17468d02d32ca7a86d520caacf
  • master default
2 results

playbook.yml

Blame
  • playbook.yml 568 B
    ---
    - hosts: all
      gather_facts: False
      roles: [debian-bootstrap]
      post_tasks:
          - name: APT install sudo
            apt:
                name: sudo
                state: present
    
          - name: Test gathering facts
            setup:
    
          - name: Test ping
            ping:
    
          - name: Test task with an unprivileged user
            become: True
            become_user: nobody
            command: whoami
            changed_when: False
    
          - name: Assertions
            assert:
                that:
                    - ansible_default_ipv4 is defined
                    - ansible_lsb is mapping