Skip to content


ansible cont.

This time, a user (wmd needs to have in his home directory (several hosts needs this treatment) a very specific file with an equally specific content and permisions. Ansible playbook code for today:

---
- hosts: jam

  tasks:
   - name: edit ~wmd/k5login
   - shell: echo 'E_wmd@CHOP.EDU' > /home/e_wmd/.k5login
   - file: path=/home/e_wmd/.k5login owner=e_wmd group=wmd mode=0644

To execute this spcific playbook:

# ansible-playbook wmd.yml

This effort was required by lack of consitency in user definition in AD…….Often you can fix something faster than the one who owns it….. 🙂

Posted in LINUX.

Tagged with , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

WordPress Anti Spam by WP-SpamShield



Copyright © 2016 - 2017 Waldemar Mark Duszyk. All Rights Reserved. Created by Blog Copyright.