diff --git a/base.yml b/base.yml index 85ffbb65..ef10d368 100755 --- a/base.yml +++ b/base.yml @@ -50,6 +50,7 @@ - sudo - ntp-client - crans-scripts + - root-config # Deploy LDAP replica - hosts: odlyd.adm.crans.org,soyouz.adm.crans.org,fy.adm.crans.org,thot.adm.crans.org diff --git a/roles/root-config/tasks/main.yml b/roles/root-config/tasks/main.yml new file mode 100644 index 00000000..0a8bb1ac --- /dev/null +++ b/roles/root-config/tasks/main.yml @@ -0,0 +1,5 @@ +--- +- name: Create or rewrite .nanorc for root + template: + src: nanorc.j2 + dest: /root/.nanorc diff --git a/roles/root-config/templates/nanorc.j2 b/roles/root-config/templates/nanorc.j2 new file mode 100644 index 00000000..d6c3b174 --- /dev/null +++ b/roles/root-config/templates/nanorc.j2 @@ -0,0 +1,309 @@ +{{ ansible_header | comment }} +## +## Sample initialization file for GNU nano. +## +## Please note that you must have configured nano with --enable-nanorc +## for this file to be read! Also note that this file should not be in +## DOS or Mac format, and that characters specially interpreted by the +## shell should not be escaped here. +## +## To make sure a value is disabled, use "unset