Newer
Older
config_date_time: "{{ ansible_date_time.date }}_{{ ansible_date_time.hour }}-{{ ansible_date_time.minute }}-{{ ansible_date_time.second }}"
- name: Install a list of packages
apt:
update_cache: yes
state: present
pkg:
- curl
- openssh-server
- ca-certificates
- tzdata
- perl
- gnupg
- apt-transport-https
- name: Install Debian archive keyring
apt:
update_cache: yes
state: present
pkg:
- debian-archive-keyring
when: ansible_distribution == 'Debian'
# - name: Create a directory for trusted-certs
# file:
# path: "/etc/gitlab/trusted-certs"
# state: directory
# mode: '0755'
# - name: Install and configure external ssl
# block:
# - name: Create a directory for ssl
# file:
# path: "/etc/gitlab/ssl"
# state: directory
# mode: '0755'
# - name: Create a symbolic link to /opt/ssl/fullchain.pem
# file:
# src: /opt/ssl/fullchain.pem
# dest: "/etc/gitlab/ssl/{{ item }}.crt"
# owner: root
# group: root
# state: link
# loop: "{{ gitlab_hostnames }}"
# notify: Reconfigure gitlab
# - name: Create a symbolic link to /opt/ssl/privkey.pem
# file:
# src: /opt/ssl/privkey.pem
# dest: "/etc/gitlab/ssl/{{ item }}.key"
# owner: root
# group: root
# state: link
# loop: "{{ gitlab_hostnames }}"
# notify: Reconfigure gitlab
# when: gitlab_custom_ssl|default(False) == False