Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
25
box/provisioning/roles/drupalvm.hostname/tasks/main.yml
Normal file
25
box/provisioning/roles/drupalvm.hostname/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue