Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit ddbd81b

Browse files
committed
Merge branch 'test-ubuntu1804'
2 parents cf02a9e + 1fc8ca7 commit ddbd81b

File tree

6 files changed

+16
-39
lines changed

6 files changed

+16
-39
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ env:
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

provisioning/roles/drupalvm.hostname/meta/main.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff 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

provisioning/roles/drupalvm.hostname/tasks/main.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@
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:
@@ -12,15 +14,19 @@
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']

tests/initctl_faker

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/run-tests.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ if [ $distro = 'centos7' ]; then
2626
elif [ $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
3034
elif [ $distro = 'ubuntu1604' ]; then
3135
init="/lib/systemd/systemd"

tests/test-setup.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,3 @@
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

0 commit comments

Comments
 (0)