NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

MAKEDEV from ansible problem



Hello all,

I have been playing with ansible to set up some of my NB machines they way I like in an automated fashion.  As of right now it’s working very well.  I ran this on 3 machiens yesterday, and ansible reported no failures. 

The one thing that reported success but didn’t actually happen was a MAKEDEV for sd5.  I have more drives on this machine than NetBSD created device nodes for by default.  My playbook section:

- name: Setup RAID on ss20 - make devices for sd5
    become: yes
    shell: |
        /dev/MAKEDEV sd5
    when: ansible_facts['hostname'] == “ss20”

It seems like something wasn’t happy about the way this ran.  It ran as root (become: yes).  And as I said ansible said it ran okay.  But sd5 was not actually created.

Is there a nuance to the MAKEDEV script that I need to take into account to make this successful ?

Thanks.


Home | Main Index | Thread Index | Old Index