This repository was archived by the owner on Feb 13, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +16
-39
lines changed
provisioning/roles/drupalvm.hostname Expand file tree Collapse file tree 6 files changed +16
-39
lines changed Original file line number Diff line number Diff line change 1717 CONTAINER_ID : dvm-test
1818
1919 matrix :
20+ # Defaults - Ubuntu 18.04.
21+ - type : defaults
22+ distro : ubuntu1804
2023 # Defaults - Ubuntu 16.04.
2124 - type : defaults
2225 distro : ubuntu1604
Original file line number Diff line number Diff line change @@ -16,11 +16,7 @@ galaxy_info:
1616 - all
1717 - name : Ubuntu
1818 versions :
19- - precise
20- - raring
21- - saucy
22- - trusty
23- - xenial
19+ - all
2420
2521 galaxy_tags :
2622 - drupal
Original file line number Diff line number Diff line change 33 copy :
44 content : " {{ hostname_fqdn }}\n "
55 dest : /etc/mailname
6- when : ansible_os_family == 'Debian'
6+ when :
7+ - ansible_os_family == 'Debian'
8+ - hostname_fqdn != ''
79
810- name : Add hostname to /etc/hosts.
911 lineinfile :
1214 line : " 127.0.0.1\t {{ hostname_fqdn }}\t {{ hostname_short }}"
1315 state : present
1416 unsafe_writes : " {{ hostname_unsafe_writes }}"
17+ when : hostname_fqdn != ''
1518
1619- name : Configure hostname.
1720 copy :
1821 content : " {{ (ansible_os_family == 'Debian') | ternary(hostname_short, hostname_fqdn) }}\n "
1922 dest : /etc/hostname
2023 unsafe_writes : " {{ hostname_unsafe_writes }}"
2124 register : set_hostname
25+ when : hostname_fqdn != ''
2226
2327- name : Set the hostname for current session.
2428 command : hostname --file /etc/hostname
25- when : set_hostname.changed
29+ when :
30+ - set_hostname is changed
31+ - hostname_fqdn != ''
2632 tags : ['skip_ansible_lint']
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ if [ $distro = 'centos7' ]; then
2626elif [ $distro = ' centos6' ]; then
2727 init=" /sbin/init"
2828 opts=" --privileged"
29+ # Ubuntu 18.04
30+ elif [ $distro = ' ubuntu1804' ]; then
31+ init=" /lib/systemd/systemd"
32+ opts=" --privileged --volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"
2933# Ubuntu 16.04
3034elif [ $distro = ' ubuntu1604' ]; then
3135 init=" /lib/systemd/systemd"
Original file line number Diff line number Diff line change 1010 - name : Install test dependencies (RedHat).
1111 package : name=logrotate state=present
1212 when : ansible_os_family == 'RedHat'
13-
14- - name : Copy initctl_faker into place for Ubuntu 14.04.
15- copy :
16- src : initctl_faker
17- dest : /sbin/initctl
18- mode : 0755
19- force : yes
20- when : ansible_distribution == 'Ubuntu' and ansible_distribution_version == '14.04'
21- changed_when : false
You can’t perform that action at this time.
0 commit comments