system-config/playbooks/roles/accessbot/tasks/main.yaml
Clark Boylan 8ccab5e967 Revert "Move system-config irc bots into quay.io"
This reverts commit 5842ce3ea6.

OpenDev is moving back to docker.io in order to keep functional
speculative container image testing.

Change-Id: I748772eb92ddb608df8e10b84ce814ae17af9e18
2023-05-24 13:17:54 -07:00

37 lines
786 B
YAML

- name: Install accessbot script
copy:
src: accessbot
dest: /usr/local/bin/accessbot
mode: 0755
- name: Ensure accessbot log dir
file:
path: /var/log/accessbot
state: directory
- name: Ensure config dir
file:
path: /etc/accessbot
state: directory
- name: Install accessbot config
template:
src: accessbot.config.j2
dest: /etc/accessbot/accessbot.config
mode: 0440
- name: Copy accessbot channel config
copy:
remote_src: true
src: /opt/project-config/accessbot/channels.yaml
dest: /etc/accessbot/channels.yaml
- name: Setup log rotation
include_role:
name: logrotate
vars:
logrotate_file_name: /var/log/accessbot/accessbot.log
- name: Pull latest image
command: docker pull docker.io/opendevorg/accessbot