From 1489d662b1449d1e15dde3bf6d6b95d6c734936f Mon Sep 17 00:00:00 2001 From: Wilfried OLLIVIER Date: Fri, 25 Dec 2020 21:46:16 +0100 Subject: [PATCH] Update o2m role to 0.5.0 --- defaults/main.yml | 6 +++++- meta/.galaxy_install_info | 2 ++ tasks/main.yml | 26 +++++++++++++++++++++++++- 3 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 meta/.galaxy_install_info diff --git a/defaults/main.yml b/defaults/main.yml index 8953c20..645c6ac 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -8,6 +8,10 @@ o2m_dets_gid: 1000 o2m_name: example -o2m_version: 0.4.2 +o2m_version: 0.5.0 o2m_timer: 300 + +o2m_discord_gw_intents: "no" + +o2m_blind_test: yes diff --git a/meta/.galaxy_install_info b/meta/.galaxy_install_info new file mode 100644 index 0000000..d28e415 --- /dev/null +++ b/meta/.galaxy_install_info @@ -0,0 +1,2 @@ +install_date: Sun Oct 25 16:54:34 2020 +version: '' diff --git a/tasks/main.yml b/tasks/main.yml index c95910f..6d68f0b 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,7 +16,7 @@ - "{{ o2m_name }}" - "{{ o2m_name }}/dets" -- name: Ensure o2m (service) +- name: Ensure o2m (service) with blind tests docker_container: name: o2m-{{ o2m_name }} image: papey/o2m:{{ o2m_version }} @@ -24,6 +24,29 @@ state: started env: DISCORD_TOKEN: "{{ o2m_discord_token }}" + DISCORD_GW_INTENTS: "{{ o2m_discord_gw_intents }}" + O2M_FEED_URLS: "{{ o2m_feed_urls }}" + O2M_NICKNAME: "{{ o2m_nickname }}" + O2M_GUILD_ID: "{{ o2m_guild_id }}" + O2M_CHAN_ID: "{{ o2m_chan_id }}" + O2M_JOBS_TIMER: "{{ o2m_timer }}" + O2M_BT_ADMIN: "{{ o2m_bt_admin }}" + O2M_BT_CHAN_ID: "{{ o2m_bt_chan_id }}" + O2M_BT_VOCAL_ID: "{{ o2m_bt_vocal_id }}" + restart_policy: always + volumes: + - "{{ o2m_base }}/{{ o2m_name }}/dets:/opt/o2m/dets" + when: o2m_blind_test + +- name: Ensure o2m (service) without blind test + docker_container: + name: o2m-{{ o2m_name }} + image: papey/o2m:{{ o2m_version }} + pull: yes + state: started + env: + DISCORD_TOKEN: "{{ o2m_discord_token }}" + DISCORD_GW_INTENTS: "{{ o2m_discord_gw_intents }}" O2M_FEED_URLS: "{{ o2m_feed_urls }}" O2M_NICKNAME: "{{ o2m_nickname }}" O2M_GUILD_ID: "{{ o2m_guild_id }}" @@ -32,3 +55,4 @@ restart_policy: always volumes: - "{{ o2m_base }}/{{ o2m_name }}/dets:/opt/o2m/dets" + when: not o2m_blind_test