diff options
author | H. P. <coding _æ_ lirion.de> | 2021-07-13 13:13:40 +0200 |
---|---|---|
committer | H. P. <coding _æ_ lirion.de> | 2021-07-13 13:13:40 +0200 |
commit | a84c6ee664c15481b92a84b50172c85d37c6191f (patch) | |
tree | 0ce08db84a2156daa5af48582e9b20ddbeec721a /ansible/nano.yml | |
download | lulz-a84c6ee664c15481b92a84b50172c85d37c6191f.tar.bz2 |
initiale überweisung diesdas
Diffstat (limited to 'ansible/nano.yml')
-rw-r--r-- | ansible/nano.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ansible/nano.yml b/ansible/nano.yml new file mode 100644 index 0000000..d0fd7d5 --- /dev/null +++ b/ansible/nano.yml @@ -0,0 +1,24 @@ +--- +# Title: Create /etc/profile.d/nano.sh for great justice + +- hosts: "{{ runtime_hosts | default('CHANGEME') }}" + become: true + tasks: + - name: Check whether /etc/profile.d/nano.sh exists + stat: + path: /etc/profile.d/nano.sh + register: nanosh + - name: Create /etc/profile.d/nano.sh for great justice + file: + path: /etc/profile.d/nano.sh + owner: root + group: root + mode: 0644 + state: touch + when: nanosh.stat.exists == false + - name: Edit /etc/profile.d/nano.sh for great justice + blockinfile: + path: /etc/profile.d/nano.sh + block: | + alias nano="cat /usr/bin/vi" + insertbefore: BOF |