bbaassssiiee / buildserver

Multiplatform development environment with Vagrant and Ansible
17 stars 21 forks source link

pki steps are being skipped for docker causing following steps to fail #75

Open littlealex003 opened 4 years ago

littlealex003 commented 4 years ago

I'm trying to get these scripts working on docker containers instead of vms and getting somewhere (slowly, testing is not a fast turnaround), hung up here now in buildserver/roles/pki/tasks/main.yml (lines 65 to 92):

`- name: decrypt server certificate when: ansible_virtualization_type != "docker" environment: P12_PASSWORD: "{{ p12_password | default('p12_password') }}" shell: 'openssl pkcs12 \ -in /etc/pki/tls/private/server.p12 \ -nodes -nokeys \ -passin env:P12_PASSWORD > /etc/pki/tls/certs/tmp.cer' changed_when: yes

As you can see these tasks specifically don't run for docker, any reason why? I'm pretty sure either they need to run or the following check of the generated file needs to be removed!

bbaassssiiee commented 4 years ago

Please create a pull-request with this line removed from the action named decrypt server key:

when: ansible_virtualization_type != "docker"

Don't forget to register on https://hacktoberfest.digitalocean.com to earn a T-shirt