ansible/roles/common/tasks/system.yml
2021-07-01 12:12:06 -05:00

12 lines
406 B
YAML

#!/usr/bin/env ansible-playbook
# vim:ft=ansible:
- name: configure hostname
hostname: name={{ inventory_hostname }}
- name: ensure loopback name
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
template: src=profile.sh dest=/etc/profile.d/50-ansible.sh mode=0644