Fixing hostname/cert

This commit is contained in:
Tyler Hale 2024-01-21 15:00:29 -07:00
parent 043ec07ad4
commit 49c2cf296b
Signed by: Tyler
GPG key ID: C7CC4B910D88EF96
2 changed files with 14 additions and 2 deletions

View file

@ -17,6 +17,18 @@
when: ansible_python_version is version('3', '>=')
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
package:
name: python2-cryptography
@ -30,7 +42,7 @@
executable: pip3
state: latest
when: ansible_python_version is version('3', '>=')
become: false
become: true
- name: Ensure directory exists for local self-signed TLS certs
file:

View file

@ -13,7 +13,7 @@
lineinfile:
dest: /etc/hosts
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
- name: Ensure hostname is set in /etc/hosts