ansible/roles/common/tasks/main.yml in subspace-1.0.8 vs ansible/roles/common/tasks/main.yml in subspace-2.0.0
- old
+ new
@@ -7,23 +7,17 @@
path: "/etc/profile.d/"
owner: root
state: directory
become: yes
- - name: Create terminal color file and make it executable
- file:
- path: "/etc/profile.d/termcolor.sh"
- state: touch
- mode: a+x
- become: true
-
- name: Set terminal color
vars:
terminal_env_playbook: "{{terminal_env | default('not provided', true) }}"
template:
src: terminalcolor
dest: "/etc/profile.d/termcolor.sh"
+ mode: a+x
become: true
- name: Set MOTD
template:
src: motd
@@ -69,10 +63,22 @@
command: /usr/lib/update-notifier/apt-check --human-readable
tags:
- upgrade
register: out
- - debug: var=out
+ - name: Creates /opt/subspace
+ file:
+ path: /opt/subspace
+ state: directory
+ become: true
+
+ - name: Save updates to /opt/subspace/updates.log
+ lineinfile:
+ path: /opt/subspace/updates.log
+ line: "[{{ out.end }}]\n{{ out.stdout }}"
+ insertafter: EOF
+ create: yes
+ become: true
- name: apt-get upgrade
apt: upgrade=full
become: true
tags: