Sha256: 145c907933e01c62616d1469a5fd1c0572422e892cabafff91edf9d2c5fa4a3e

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

# test file for sysfs
---
- hosts: all
  remote_user: vagrant
  become: true
  roles:
    - ../../
  post_tasks:
    - name: post | check permissions
      stat:
        path: "{{ item }}"
      register: check_permissions
      changed_when: false
      failed_when: >
        check_permissions.stat.pw_name != 'root'
        and check_permissions.stat.gr_name != 'vagrant'
        and check_permissions.stat.mode != '0660'
      with_items:
        - /sys/power/state

    - name: post | check values
      shell: awk 'NR>1 {print $1}' RS=[ FS=] {{ item }}
      register: check_values
      changed_when: false
      failed_when: check_values.stdout != 'never'
      with_items:
        - /sys/kernel/mm/transparent_hugepage/enabled
        - /sys/kernel/mm/transparent_hugepage/defrag

  vars:
    sysfs_sysfs_d_files:
      000-power-state.conf:
        - action: mode
          attribute: power/state
          value: '0660'
        - action: owner
          attribute: power/state
          value: 'root:vagrant'
      001-transparent-hugepage.conf:
        - attribute: kernel/mm/transparent_hugepage/enabled
          value: never
        - attribute: kernel/mm/transparent_hugepage/defrag
          value: never

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
taperole-2.1.1 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.1.0 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.7 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.6 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.5 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.4 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.3 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.2 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.1 vendor/ansible-sysfs/tests/vagrant.yml
taperole-2.0.0 vendor/ansible-sysfs/tests/vagrant.yml
taperole-1.8.2 vendor/ansible-sysfs/tests/vagrant.yml
taperole-1.8.1 vendor/ansible-sysfs/tests/vagrant.yml