Skip to content
Snippets Groups Projects
Select Git revision
  • e4fceae2589ae9322681e2e6b152e95a4632f8ba
  • master default protected
  • th/caddy-wip
  • th/caddy
  • th/lego
  • th/acmebot
  • pyzabbix
  • th/keycloak
8 results

.ansible-lint

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    main.yml 1.25 KiB
    ---
    
    - name: ensure /tmp is a tmpfs
      mount:
        name: /tmp
        src: tmpfs
        fstype: tmpfs
        opts: "{{ tmp_mount_options|join(',') }}"
        state: mounted
      tags:
        - mount
    
    - name: ensure lsb release information is available
      apt:
        name: lsb-release
        state: present
      notify:
        - gather minimal standard facts once again
      tags:
        - lsb
    - meta: flush_handlers
    
    - name: Check for Proxmox
      stat:
        path: /etc/pve
      register: pve_present
      tags:
        - etckeeper
    
    - name: Ignore Proxmox config in etckeeper
      lineinfile:
        path: /etc/.gitignore
        line: /pve
        create: true
        owner: root
        group: root
        mode: "0600"
      when: etckeeper and pve_present.stat.exists
      notify:
        - Remove pve directory from etckeeper repo
      tags:
        - etckeeper
    
    - name: Install etckeeper
      apt:
        name: etckeeper
        state: present
      when: etckeeper
      tags:
        - etckeeper
    
    - name: Uninstall etckeeper
      apt:
        name: etckeeper
        state: absent
      when: not etckeeper
      tags:
        - etckeeper
    
    - name: Configure fstrim cronjob
      copy:
        src: fstrim
        dest: /etc/cron.daily/fstrim
        owner: root
        group: root
        mode: '0755'
      when: fstrim
      tags:
        - fstrim