main.yml - ansible-roles - A collection of ansible roles I have created over the years.
 (HTM) git clone git://jay.scot/ansible-roles
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       main.yml (1040B)
       ---
            1 ---
            2 - name: Include variables
            3   include_tasks: variables.yml
            4 
            5 - name: Debian tasks
            6   include_tasks: setup-Debian.yml
            7   when: ansible_os_family == 'Debian'
            8 
            9 - name: Redhat tasks
           10   include_tasks: setup-RedHat.yml
           11   when: ansible_os_family == 'RedHat'
           12 
           13 - name: Add quark user account
           14   user:
           15     name: "{{ quark.user }}"
           16     create_home: false
           17     shell: /bin/false
           18 
           19 - name: Ensure group exists
           20   group:
           21     name: "{{ quark.group }}"
           22     state: present
           23 
           24 - name: Git clone quark
           25   git:
           26     repo: "git://git.suckless.org/quark"
           27     dest: "{{ quark.build_path }}"
           28     version: "{{ quark.version }}"
           29     update: false
           30     force: false
           31     depth: 1
           32   register: git_updated
           33 
           34 - name: Make install quark
           35   make:
           36     chdir: "{{ quark.build_path }}"
           37     target: install
           38   when: git_updated.changed
           39 
           40 - name: Copy quark systemd service template
           41   template:
           42     src: quark.service.j2
           43     dest: /lib/systemd/system/quark.service
           44   notify: restart quark
           45 
           46 - name: Enable and start quark service
           47   service:
           48     name: quark
           49     state: started
           50     enabled: true