Loading .gitignore 0 → 100644 +1 −0 Original line number Diff line number Diff line /.idea .gitlab-ci.yml 0 → 100644 +36 −0 Original line number Diff line number Diff line # VARIABLES variables: DOCKER_BUILDKIT: 1 DOCKER_DRIVER: overlay2 DOCKER_HOST: tcp://localhost:2375 DOCKER_TLS_CERTDIR: "" ########################################################################################################## ## PIPELINE DEFINITION stages: - check ########################################################################################################## ### COMMON SECTION .common: &common services: - registry.cyberbrain.pw/docker/dind variables: GIT_DEPTH: 1 ANSIBLE_FORCE_COLOR: "True" before_script: - chmod -R o-w ../ ########################################################################################################## ### TEST SECTION test: <<: *common stage: check image: registry.cyberbrain.pw/ansible/ansible except: - /^master$/ script: - find . -type d -exec ansible-lint --force-color -v -x '204' {} \; tasks/main.yml 0 → 100644 +14 −0 Original line number Diff line number Diff line - name: Add the user 'docker' with a primary group of 'docker' user: name: docker comment: Docker Deploy Dude group: docker shell: /bin/bash password_lock: yes - name: Set authorized key taken from file authorized_key: user: docker state: present key: "{{ docker_ssh_key }}" exclusive: True Loading
.gitlab-ci.yml 0 → 100644 +36 −0 Original line number Diff line number Diff line # VARIABLES variables: DOCKER_BUILDKIT: 1 DOCKER_DRIVER: overlay2 DOCKER_HOST: tcp://localhost:2375 DOCKER_TLS_CERTDIR: "" ########################################################################################################## ## PIPELINE DEFINITION stages: - check ########################################################################################################## ### COMMON SECTION .common: &common services: - registry.cyberbrain.pw/docker/dind variables: GIT_DEPTH: 1 ANSIBLE_FORCE_COLOR: "True" before_script: - chmod -R o-w ../ ########################################################################################################## ### TEST SECTION test: <<: *common stage: check image: registry.cyberbrain.pw/ansible/ansible except: - /^master$/ script: - find . -type d -exec ansible-lint --force-color -v -x '204' {} \;
tasks/main.yml 0 → 100644 +14 −0 Original line number Diff line number Diff line - name: Add the user 'docker' with a primary group of 'docker' user: name: docker comment: Docker Deploy Dude group: docker shell: /bin/bash password_lock: yes - name: Set authorized key taken from file authorized_key: user: docker state: present key: "{{ docker_ssh_key }}" exclusive: True