Hi all,

So, since 1.9.0.1-1 my playbooks have broken. 

My playbook:

  roles:
   - role: common
     sudo: yes


IOError: [Errno 13] Permission denied: '/etc/fstab'
OpenSSH_6.8p1, OpenSSL 1.0.2a 19 Mar 2015

The fix:

Add sudo: yes to the task:

cat roles/common/tasks/main.yml 
---
- name: Ensure fstab uses nobootwait and noatime
  mount:
    name: "{{ item.mount }}"
    src: "{{ item.device }}"
    fstype: "{{ item.fstype }}"
    opts: "{{ item.options.split(',') | union(['nobootwait','noatime']) | 
join(',') }}"
    state: present
  with_items: ansible_mounts
  when: item.options.find("nobootwait") == -1 or 
item.options.find("noatime") == -1
  tags:
    - fstab
  sudo: yes


If I role back to 1.8.4-1 all is okay. 

I have looked at the changelog, but cannot see anything thats changed.

Am I doing something wrong?

Ben

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/5a4313dc-c555-4138-af9f-dbdb8d6fd95c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to