From 18054de424116ad95fa1b3edb2741f9437779773 Mon Sep 17 00:00:00 2001 From: Lars Beckers <lars.beckers@rwth-aachen.de> Date: Mon, 24 Jul 2017 20:05:28 +0200 Subject: [PATCH] modify branding role for drop in usage --- branding/files/{ => fsmpi}/gitconfig | 0 branding/tasks/main.yml | 25 ++++++++ branding/tasks/shell.yml | 90 ---------------------------- 3 files changed, 25 insertions(+), 90 deletions(-) rename branding/files/{ => fsmpi}/gitconfig (100%) create mode 100644 branding/tasks/main.yml delete mode 100644 branding/tasks/shell.yml diff --git a/branding/files/gitconfig b/branding/files/fsmpi/gitconfig similarity index 100% rename from branding/files/gitconfig rename to branding/files/fsmpi/gitconfig diff --git a/branding/tasks/main.yml b/branding/tasks/main.yml new file mode 100644 index 0000000..cf9183a --- /dev/null +++ b/branding/tasks/main.yml @@ -0,0 +1,25 @@ +--- +# file: roles/common/tasks/shell.yml + +- name: ensure deployment of greeter + copy: src=fsmpi/motd dest=/etc/motd owner=root group=root mode=0644 + tags: + - config + - shell + - fsmpi + +- name: ensure deployment of issue.net + copy: src=fsmpi/issue.net dest=/etc/issue.net owner=root group=root mode=0644 + tags: + - config + - shell + - fsmpi + +- name: ensure deployment of a fancy gitconfig for root + copy: src=fsmpi/gitconfig dest=/root/.gitconfig owner=root group=root mode=0640 + tags: + - config + - shell + - root + - fsmpi + diff --git a/branding/tasks/shell.yml b/branding/tasks/shell.yml deleted file mode 100644 index c5f99c1..0000000 --- a/branding/tasks/shell.yml +++ /dev/null @@ -1,90 +0,0 @@ ---- -# file: roles/common/tasks/shell.yml - -- name: ensure installation of basic shell commands - apt: state=latest name={{ item }} install_recommends=no - with_items: - - git - - vim - - vim-scripts - - zsh - - mtr-tiny - - whois - tags: - - packages - - shell - -- name: ensure the necessary terminfo is available - apt: name=ncurses-term state=latest - tags: - - packages - - shell - -- name: ensure zsh-grml is available - get_url: url=http://git.grml.org/f/grml-etc-core/etc/zsh/zshrc dest={{ item }} owner=root group=root mode=0644 - with_items: - - /etc/zsh/zshrc - - /root/.zshrc - tags: - - config - - shell - -- name: ensure zsh-grml is the default - get_url: url=http://git.grml.org/f/grml-etc-core/etc/skel/.zshrc dest={{ item }} owner=root group=root mode=0640 - with_items: - - /etc/skel/.zshrc - tags: - - config - - shell - -- name: ensure deployment of greeter - copy: src=fsmpi/motd dest=/etc/motd owner=root group=root mode=0644 - tags: - - config - - shell - - fsmpi - -- name: ensure deployment of issue.net - copy: src=fsmpi/issue.net dest=/etc/issue.net owner=root group=root mode=0644 - tags: - - config - - shell - - fsmpi - -- name: ensure deployment of a fancy bashrc for root - copy: src=root/bashrc dest=/root/.bashrc owner=root group=root mode=0640 - tags: - - config - - shell - - root - -- name: ensure deployment of a fancy vimrc for root - copy: src=root/vimrc dest=/root/.vimrc owner=root group=root mode=0640 - tags: - - config - - shell - - root - -- name: ensure deployment of a fancy gitconfig for root - copy: src=root/gitconfig dest=/root/.gitconfig owner=root group=root mode=0640 - tags: - - config - - shell - - root - -- name: ensure a properly configured root account - user: name=root shell=/bin/zsh - tags: - - config - - shell - - root - -- name: ensure that pcspeaker remains silent - kernel_blacklist: name=pcspkr state=present - notify: - - rerun depmod - - update initramfs - tags: - - config - - shell - - modules -- GitLab