Fix apt, hostname
This commit is contained in:
@@ -3,6 +3,12 @@
|
||||
apt_key: id="{{ item.id }}" url="{{ item.url }}" file="{{ item.file }}" state="{{ item.state }}"
|
||||
with_items: "{{ common_apt_keys }}"
|
||||
|
||||
- name: apt - remove /etc/apt/sources.list.d/*
|
||||
file: path=/etc/apt/sources.list.d/* state=absent
|
||||
|
||||
- name: apt - add /etc/apt/sources.list.d/
|
||||
file: path=/etc/apt/sources.list.d/ state=directory owner=root group=root mode=0755
|
||||
|
||||
- name: apt - add repositories
|
||||
apt_repository: repo="{{ item }}" update_cache=yes
|
||||
with_items: "{{ common_apt_repositories }}"
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
group: root
|
||||
mode: 0644
|
||||
backup: yes
|
||||
state: file
|
||||
|
||||
- name: /etc/hosts
|
||||
template:
|
||||
|
||||
@@ -20,3 +20,6 @@
|
||||
authorized_key: user="root" key="{{ common_openssh_keys_root | join("\n") }}" exclusive=yes
|
||||
when: common_openssh_keys_root
|
||||
tags: 'ssh-keys'
|
||||
|
||||
- name: openssh - truncate /etc/motd
|
||||
copy: dest=/etc/motd content='' force=yes
|
||||
|
||||
Reference in New Issue
Block a user