proxmox: remove tasks done by debian role
This commit is contained in:
parent
ef69e31357
commit
011a0852bb
3 changed files with 0 additions and 79 deletions
|
@ -3,44 +3,15 @@
|
|||
set_fact:
|
||||
is_primary: '{{ nodes is defined and inventory_hostname == (nodes | map(attribute="inventory_hostname") | sort | first) }}'
|
||||
|
||||
- name: Set hostname
|
||||
hostname:
|
||||
name: '{{ inventory_hostname }}'
|
||||
|
||||
- name: Set up hosts file
|
||||
template:
|
||||
dest: /etc/hosts
|
||||
src: hosts.j2
|
||||
|
||||
- name: Set up resolv.conf
|
||||
template:
|
||||
dest: /etc/resolv.conf
|
||||
src: resolv.conf.j2
|
||||
mode: 0644
|
||||
|
||||
- name: Disable SSH password authentication
|
||||
lineinfile:
|
||||
path: /etc/ssh/sshd_config
|
||||
regexp: '^#?{{ item.key }}'
|
||||
line: '{{ item.key }} {{ item.value }}'
|
||||
loop:
|
||||
- key: PasswordAuthentication
|
||||
value: 'no'
|
||||
- key: PermitRootLogin
|
||||
value: 'prohibit-password'
|
||||
notify: reload sshd
|
||||
|
||||
- include_tasks: network.yml
|
||||
|
||||
- include_tasks: repositories.yml
|
||||
|
||||
- name: Install essential packages
|
||||
package:
|
||||
name:
|
||||
- git
|
||||
- vim
|
||||
- tmux
|
||||
|
||||
- name: Set up sysctls
|
||||
copy:
|
||||
dest: /etc/sysctl.d/local.conf
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue