We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cfd738 commit e950083Copy full SHA for e950083
playbooks/baseline/config.yml
@@ -6,6 +6,17 @@
6
- polaris.layer.baseline.config
7
tasks:
8
9
+ - name: The host name is correct
10
+ ansible.builtin.hostname:
11
+ name: '{{ inventory_hostname }}'
12
+
13
+ - name: The host name is present in /etc/hosts
14
+ ansible.builtin.lineinfile:
15
+ dest: /etc/hosts
16
+ regexp: '^127\.0\.0\.1[ \t]+localhost'
17
+ line: '127.0.0.1 localhost {{ inventory_hostname }}'
18
+ state: present
19
20
- name: Python packages needed by Ansible are installed by Pip
21
ansible.builtin.import_role:
22
name: geerlingguy.pip
0 commit comments