ansible/roles/common/tasks/system.yml

12 lines
454 B
YAML
Raw Normal View History

2020-10-17 01:00:06 -05:00
#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- name: configure hostname
2022-06-16 23:45:29 -05:00
ansible.builtin.hostname: name={{ inventory_hostname }}
- name: ensure loopback name
2022-06-16 23:45:29 -05:00
ansible.builtin.lineinfile: path=/etc/hosts line="127.0.0.1 {{ inventory_hostname }}"
- name: configure timezone
timezone: name=America/Chicago
notify: restart cron
- name: configure shell profile
2022-06-16 23:45:29 -05:00
ansible.builtin.template: src=profile.sh dest=/etc/profile.d/50-ansible.sh mode=0644