Add all files needed to bring up VM and run agaric.com locally

This commit is contained in:
benjamin melançon 2018-08-20 10:45:20 -04:00
parent 52c8b60bac
commit 4d2bc0ee24
742 changed files with 24037 additions and 0 deletions

View file

@ -0,0 +1,25 @@
---
- name: Configure /etc/mailname (Debian).
copy:
content: "{{ hostname_fqdn }}\n"
dest: /etc/mailname
when: ansible_os_family == 'Debian'
- name: Add hostname to /etc/hosts.
lineinfile:
dest: /etc/hosts
regexp: '.*\t{{ hostname_short }}$'
line: "127.0.0.1\t{{ hostname_fqdn }}\t{{ hostname_short }}"
state: present
unsafe_writes: "{{ hostname_unsafe_writes }}"
- name: Configure hostname.
copy:
content: "{{ (ansible_os_family == 'Debian') | ternary(hostname_short, hostname_fqdn) }}\n"
dest: /etc/hostname
unsafe_writes: "{{ hostname_unsafe_writes }}"
register: set_hostname
- name: Set the hostname for current session.
shell: hostname --file /etc/hostname
when: set_hostname.changed