Fixing hostname/cert
This commit is contained in:
parent
043ec07ad4
commit
49c2cf296b
2 changed files with 14 additions and 2 deletions
|
@ -17,6 +17,18 @@
|
||||||
when: ansible_python_version is version('3', '>=')
|
when: ansible_python_version is version('3', '>=')
|
||||||
become: false
|
become: false
|
||||||
|
|
||||||
|
- name: check if pip3 file exists
|
||||||
|
stat:
|
||||||
|
path: /bin/pip3
|
||||||
|
register: pip3_status
|
||||||
|
|
||||||
|
- name: Create a symbolic link for pip
|
||||||
|
file:
|
||||||
|
src: /usr/local/bin/pip3
|
||||||
|
dest: /bin/pip3
|
||||||
|
state: link
|
||||||
|
when: pip3_status.stat.exists == false
|
||||||
|
|
||||||
- name: Install latest python2-cryptography
|
- name: Install latest python2-cryptography
|
||||||
package:
|
package:
|
||||||
name: python2-cryptography
|
name: python2-cryptography
|
||||||
|
@ -30,7 +42,7 @@
|
||||||
executable: pip3
|
executable: pip3
|
||||||
state: latest
|
state: latest
|
||||||
when: ansible_python_version is version('3', '>=')
|
when: ansible_python_version is version('3', '>=')
|
||||||
become: false
|
become: true
|
||||||
|
|
||||||
- name: Ensure directory exists for local self-signed TLS certs
|
- name: Ensure directory exists for local self-signed TLS certs
|
||||||
file:
|
file:
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/hosts
|
dest: /etc/hosts
|
||||||
regexp: '^127\.0\.0\.1[ \t]+localhost'
|
regexp: '^127\.0\.0\.1[ \t]+localhost'
|
||||||
line: '127.0.0.1 localhost {{ base_core_hostname }}'
|
line: '127.0.0.1 {{ base_core_hostname }} localhost'
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Ensure hostname is set in /etc/hosts
|
- name: Ensure hostname is set in /etc/hosts
|
||||||
|
|
Loading…
Reference in a new issue