summaryrefslogtreecommitdiffstats
path: root/examples/playbooks/rule-args-module-pass-1.yml
blob: 872cd39c7862444d2c57e3e95c33ca9bd3ddc543 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
---
- name: Fixture to validate module options pass scenario
  hosts: localhost
  tasks:
    - name: Clone content repository
      ansible.builtin.git:
        repo: "{{ archive_services_repo_url }}"
        dest: /home/www
        accept_hostkey: true
        version: master
        update: false

    - name: Enable service httpd and ensure it is not masked
      ansible.builtin.systemd:
        name: httpd
        enabled: false
        masked: false

    - name: Clear deployment dir
      ansible.builtin.file:
        path: /opt/software/deployment
        state: "{{ item }}"
        mode: "0755"
      with_items:
        - absent
        - directory