Skip to content

Commit ded65f4

Browse files
author
William Graef
committed
update vnc syntax and vbox pkg dep
1 parent 91e01cf commit ded65f4

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

ol/provision_vbox.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,19 @@
1212

1313
tasks:
1414

15+
- name: Install ol8_developer_EPEL
16+
ansible.builtin.dnf:
17+
name: oracle-epel-release-el8
18+
state: present
19+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
20+
21+
- name: Enable ol8_developer_EPEL repo
22+
ansible.builtin.command:
23+
cmd: dnf config-manager --enable ol8_developer_EPEL
24+
register: dnf_result
25+
changed_when: dnf_result.rc == 0
26+
when: ansible_distribution == 'OracleLinux' and ansible_distribution_major_version == '8'
27+
1528
- name: Install required packages for virtualbox
1629
ansible.builtin.dnf:
1730
name:

ol/provision_vnc.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@
3030
dest: /etc/systemd/system/default.target
3131
state: link
3232

33-
- name: Set vncserver systemd template
34-
ansible.builtin.file:
35-
src: /usr/lib/systemd/system/[email protected]
36-
dest: /etc/systemd/system/[email protected]
37-
state: link
33+
# - name: Set vncserver systemd template
34+
# ansible.builtin.file:
35+
# src: /usr/lib/systemd/system/[email protected]
36+
# dest: /etc/systemd/system/[email protected]
37+
# state: link
3838

3939
- name: Assign username to vnc port
4040
ansible.builtin.lineinfile:
@@ -52,7 +52,7 @@
5252
ansible.builtin.file:
5353
path: /home/{{ username }}/.vnc
5454
state: directory
55-
mode: '0700'
55+
mode: "0700"
5656
owner: "{{ username }}"
5757
group: "{{ username }}"
5858

@@ -70,11 +70,11 @@
7070
path: "/home/{{ username }}/.vnc/passwd"
7171
owner: "{{ username }}"
7272
group: "{{ usergroup }}"
73-
mode: '0600'
73+
mode: "0600"
7474

7575
- name: Start and enable the vnc service
7676
ansible.builtin.systemd:
77-
state: started
77+
name: "vncserver@:{{ vnc_port }}.service"
7878
daemon_reload: true
79-
name: vncserver@:{{ vnc_port }}.service
8079
enabled: true
80+
state: started

0 commit comments

Comments
 (0)