Skip to content
Snippets Groups Projects
Select Git revision
  • 6e69afe38e7ae7e6738ba9e6cb0a26db5188b4c7
  • master default protected
2 results

admin_user_new.html

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