Commit 79dd0e01 authored by Nick Bannon's avatar Nick Bannon Committed by root

thank you YAML, leading 0 for octal permissions

parent d19b0393
......@@ -10,13 +10,21 @@
apt: name=cron state=present
when: ansible_os_family == 'Debian'
tasks:
- name: Add simple logging files
- name: Add simple logging collection scripts
template:
src: numeric_log.j2
dest: '/usr/local/bin/ucc_node_{{ item.name }}.sh'
owner: root
mode: 755
mode: 0755
loop: "{{ shell_logs }}"
- name: Remove old collection scripts 1
file: path='/usr/local/bin/ucc_node_current_users_gauge' state=absent
- name: Remove old collection scripts 2
file: path='/usr/local/bin/ucc_node_current_users.sh' state=absent
- name: Remove old collection scripts 3
file: path='/usr/local/bin/ucc_node_getent_passwd_count' state=absent
- name: Remove old collection scripts 4
file: path='/usr/local/bin/ucc_node_getent_passwd_users.sh' state=absent
- name: Add cron jobs for simple logging
cron:
name: "{{ item.description }}"
......@@ -33,4 +41,4 @@
- name: current_users_gauge
description: Expose total (unique) users currently logged in
cmd: "users | sed 's/ /\\n/g' | uniq | wc -l"
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment