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:
2021-02-01 06:52:28 -06:00
parent a68bafd338
commit e3b5d6b915
3 changed files with 13 additions and 5 deletions

View File

@ -1,11 +1,15 @@
---
# Cross-platform package management.
- name: Repo Cache Refresh
- name: Repo Cache Refresh (Apt and Pacman)
package:
update_cache: yes
when: ansible_pkg_mgr in ["apt", "pacman"]
- name: Repo Cache Refresh (FreeBSD)
shell: pkg update
when: ansible_system == "FreeBSD"
- name: Repo Install Software
package:
name: