ansible/roles/common/tasks/system.yml
Jacob Babor 23c9ec588c Remove localhost host entry
Yeah that's causing issues with DNS
2022-10-11 23:45:15 -05:00

12 lines
467 B
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- name: configure hostname
ansible.builtin.hostname: name={{ inventory_hostname }}
- name: ensure loopback name
ansible.builtin.lineinfile: path=/etc/hosts state=absent line="127.0.0.1 {{ inventory_hostname }}"
- name: configure timezone
timezone: name=America/Chicago
notify: restart cron
- name: configure shell profile
ansible.builtin.template: src=profile.sh dest=/etc/profile.d/50-ansible.sh mode=0644