From bb57203c227e2a4bf0da92e32b678966c223c3b5 Mon Sep 17 00:00:00 2001 From: fosslinux Date: Wed, 17 Jul 2019 03:28:47 +1000 Subject: [PATCH] ansible-ize vnc --- roles/shell/handlers/main.yml | 1 + roles/shell/handlers/vnc.yml | 7 +++++++ roles/shell/tasks/main.yml | 1 + roles/shell/tasks/vnc.yml | 9 +++++++++ 4 files changed, 18 insertions(+) create mode 100644 roles/shell/handlers/vnc.yml create mode 100644 roles/shell/tasks/vnc.yml diff --git a/roles/shell/handlers/main.yml b/roles/shell/handlers/main.yml index 0bd71e7..5adcda5 100644 --- a/roles/shell/handlers/main.yml +++ b/roles/shell/handlers/main.yml @@ -1,3 +1,4 @@ --- - include: pb.yml +- include: vnc.yml diff --git a/roles/shell/handlers/vnc.yml b/roles/shell/handlers/vnc.yml new file mode 100644 index 0000000..5c2e314 --- /dev/null +++ b/roles/shell/handlers/vnc.yml @@ -0,0 +1,7 @@ +# install vnc +--- +- name: install vnc + make: + chdir: /usr/src/pb + target: install + become: yes diff --git a/roles/shell/tasks/main.yml b/roles/shell/tasks/main.yml index 85ecb53..4040d3d 100644 --- a/roles/shell/tasks/main.yml +++ b/roles/shell/tasks/main.yml @@ -15,3 +15,4 @@ - include: gopher.yml - include: pb.yml - include: botany.yml +- include: vnc.yml diff --git a/roles/shell/tasks/vnc.yml b/roles/shell/tasks/vnc.yml new file mode 100644 index 0000000..9a62297 --- /dev/null +++ b/roles/shell/tasks/vnc.yml @@ -0,0 +1,9 @@ +# install vnc scripts +--- +- name: clone vnc + git: + repo: https://tildegit.org/thunix/vnc + dest: /usr/src/vnc + force: yes + notify: + - install vnc