Update to 2020-05-14 18:00

master
Daniel Berteaud 5 years ago
parent 66cd0a3936
commit 001632a0a0
  1. 3
      roles/common/defaults/main.yml
  2. 10
      roles/common/tasks/system.yml
  3. 9
      roles/common/templates/rc.local.j2

@ -118,4 +118,7 @@ system_base_bash_aliases:
system_extra_bash_aliases: {} system_extra_bash_aliases: {}
system_bash_aliases: "{{ system_base_bash_aliases | combine(system_extra_bash_aliases, recursive=True) }}" system_bash_aliases: "{{ system_base_bash_aliases | combine(system_extra_bash_aliases, recursive=True) }}"
# shell scriplet to exec on boot
system_rc_local_cmd: []
... ...

@ -136,4 +136,14 @@
- name: Deploy bash aliases - name: Deploy bash aliases
template: src=bash_aliases.sh.j2 dest=/etc/profile.d/ansible_aliases.sh mode=755 template: src=bash_aliases.sh.j2 dest=/etc/profile.d/ansible_aliases.sh mode=755
- name: Ensure /etc/rc.d exists
file: path=/etc/rc.d state=directory
- name: Deploy rc.local script
template: src=rc.local.j2 dest=/etc/rc.d/rc.local mode=755
# Debian is using /etc/rc.local while RHEL is using /etc/rc.d/rc.local
- name: Link /etc/rc.local to /etc/rc.d/rc.local
file: src=/etc/rc.d/rc.local path=/etc/rc.local state=link force=True
... ...

@ -0,0 +1,9 @@
#!/bin/bash
# {{ ansible_managed }}
{% for cmd in system_rc_local_cmd %}
{{ cmd }}
{% endfor %}
exit 0
Loading…
Cancel
Save