Sha256: 7effdc7efbf2503a82351544e17f9e0531d43a6154bfcaef6b3cee5e2364146b

Contents?: true

Size: 1.2 KB

Versions: 12

Compression:

Stored size: 1.2 KB

Contents

# test file for sysfs
---
- hosts: localhost
  connection: local
  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:travis'
      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/test.yml
taperole-2.1.0 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.7 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.6 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.5 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.4 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.3 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.2 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.1 vendor/ansible-sysfs/tests/test.yml
taperole-2.0.0 vendor/ansible-sysfs/tests/test.yml
taperole-1.8.2 vendor/ansible-sysfs/tests/test.yml
taperole-1.8.1 vendor/ansible-sysfs/tests/test.yml