sshd config working
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
---
|
||||
|
||||
- name: Configure ssh and firewall
|
||||
hosts:
|
||||
- archlinux_servers
|
||||
gather_facts: false
|
||||
become: true
|
||||
pre_tasks:
|
||||
|
||||
- name: Set IP facts
|
||||
become: false
|
||||
ansible.builtin.set_fact:
|
||||
ipv4_address: "{{ query('community.dns.lookup', inventory_hostname, type='A', nxdomain_handling = 'fail') | first }}"
|
||||
ipv6_address: "{{ query('community.dns.lookup', inventory_hostname, type='AAAA', nxdomain_handling = 'fail') | first }}"
|
||||
|
||||
- name: Install basic utilities
|
||||
community.general.pacman:
|
||||
name:
|
||||
- nano
|
||||
- curl
|
||||
state: present
|
||||
update_cache: true
|
||||
|
||||
roles:
|
||||
- sshd
|
||||
@@ -1,12 +0,0 @@
|
||||
---
|
||||
|
||||
- name: Configure container hosts
|
||||
hosts:
|
||||
- ch01.balsillie.house
|
||||
gather_facts: false
|
||||
tasks:
|
||||
|
||||
- name: Ping
|
||||
become: true
|
||||
ansible.builtin.ping:
|
||||
data: "pong"
|
||||
Reference in New Issue
Block a user