Add pkg refresh for FreeBSD. Create SSH key with shell instead of fancy module. Still looking into how to (safely) get newer ansible on Debian.
This commit is contained in:
parent
a68bafd338
commit
e3b5d6b915
@ -20,8 +20,8 @@
|
|||||||
- include: tasks/general/acct_mgmt/groups.yml
|
- include: tasks/general/acct_mgmt/groups.yml
|
||||||
- include: tasks/general/acct_mgmt/users.yml
|
- include: tasks/general/acct_mgmt/users.yml
|
||||||
- include: tasks/general/acct_mgmt/sudo.yml
|
- include: tasks/general/acct_mgmt/sudo.yml
|
||||||
#- include: tasks/general/acct_mgmt/keys.yml
|
- include: tasks/general/acct_mgmt/keys.yml
|
||||||
# when: ansible_distribution != "Debian"
|
when: ansible_distribution != "Debian"
|
||||||
- include: tasks/general/acct_mgmt/mounts.yml
|
- include: tasks/general/acct_mgmt/mounts.yml
|
||||||
|
|
||||||
- include: tasks/general/cron/ansible.yml
|
- include: tasks/general/cron/ansible.yml
|
||||||
|
@ -1,9 +1,13 @@
|
|||||||
---
|
---
|
||||||
# SSH keys for day-to-day system usage.
|
# SSH keys for day-to-day system usage.
|
||||||
|
|
||||||
|
# Debian's ansible is too old to use this.
|
||||||
|
#- name: Create Root's SSH Key
|
||||||
|
# openssh_keypair:
|
||||||
|
# path: /root/.ssh/id_rsa
|
||||||
|
|
||||||
- name: Create Root's SSH Key
|
- name: Create Root's SSH Key
|
||||||
openssh_keypair:
|
shell: ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa <<< n
|
||||||
path: /root/.ssh/id_rsa
|
|
||||||
|
|
||||||
- name: Join System to 1337 Share
|
- name: Join System to 1337 Share
|
||||||
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
shell: ssh-copy-id -f -i /root/.ssh/id_rsa ling@leet
|
@ -1,11 +1,15 @@
|
|||||||
---
|
---
|
||||||
# Cross-platform package management.
|
# Cross-platform package management.
|
||||||
|
|
||||||
- name: Repo Cache Refresh
|
- name: Repo Cache Refresh (Apt and Pacman)
|
||||||
package:
|
package:
|
||||||
update_cache: yes
|
update_cache: yes
|
||||||
when: ansible_pkg_mgr in ["apt", "pacman"]
|
when: ansible_pkg_mgr in ["apt", "pacman"]
|
||||||
|
|
||||||
|
- name: Repo Cache Refresh (FreeBSD)
|
||||||
|
shell: pkg update
|
||||||
|
when: ansible_system == "FreeBSD"
|
||||||
|
|
||||||
- name: Repo Install Software
|
- name: Repo Install Software
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user