Compare commits
2 Commits
0d8d872bfc
...
8636a0e112
| Author | SHA1 | Date | |
|---|---|---|---|
| 8636a0e112 | |||
| 4864ee3869 |
@@ -2,7 +2,7 @@
|
||||
# Define program names for package builtin.
|
||||
# This file is for ALL systems and should not include UI components.
|
||||
|
||||
- name: General | Facts | Packages | Shared Defaults
|
||||
- name: General | Facts | Package | Shared Defaults
|
||||
set_fact:
|
||||
sshfs: sshfs
|
||||
tar: tar
|
||||
@@ -12,7 +12,7 @@
|
||||
dig: dig
|
||||
neofetch: neofetch
|
||||
|
||||
- name: General | Facts | Packages | Parrot OS Fixes
|
||||
- name: General | Facts | Package | Parrot OS Fixes
|
||||
set_fact:
|
||||
ansible_pkg_mgr: "apt"
|
||||
ansible_python_interpreter: "/usr/bin/python3"
|
||||
@@ -56,6 +56,11 @@
|
||||
encfs: fusefs-encfs
|
||||
when: ansible_system == "FreeBSD"
|
||||
|
||||
- name: General | Facts | Package | dnf Fixes
|
||||
set_fact:
|
||||
ansible_pkg_mgr: dnf
|
||||
when: ansible_pkg_mgr in ("dnf5")
|
||||
|
||||
- name: General | Facts | Package | dnf
|
||||
set_fact:
|
||||
sshfs: fuse-sshfs
|
||||
|
||||
13
setup.sh
13
setup.sh
@@ -20,7 +20,7 @@ server_config="$config_dir/server.ini"
|
||||
function usage {
|
||||
cat <<- EOF
|
||||
|
||||
$PROG [-l] [-b branch_name] [-g] [-w] [-s] [-h]
|
||||
$PROG [-l] [-b branch_name] [-g] [-w] [-s] [-f] [-h]
|
||||
Program to initialize synchronization with Hyperling's Ansible configuration.
|
||||
$URL
|
||||
|
||||
@@ -32,7 +32,8 @@ function usage {
|
||||
-g : Enable the General config with test contents.
|
||||
-w : Enable the Workstation config with test contents.
|
||||
-s : Enable the Server config with test contents.
|
||||
-h : Display this help text
|
||||
-f : Display this system's facts.
|
||||
-h : Display this help text.
|
||||
|
||||
EOF
|
||||
exit $1
|
||||
@@ -40,13 +41,14 @@ function usage {
|
||||
|
||||
## Parameter Parsing ##
|
||||
|
||||
while getopts ":lb:gwsh" arg; do
|
||||
while getopts ":lb:gwsfh" arg; do
|
||||
case $arg in
|
||||
l) local="Y" && echo "Running $LOCAL as the playbook." ;;
|
||||
b) branch="$OPTARG" && echo "Using branch $branch instead of $BRANCH." ;;
|
||||
g) create_general="Y" && echo "Requested '$general_config'." ;;
|
||||
w) create_workstation="Y" && echo "Requested '$workstation_config'." ;;
|
||||
s) create_server="Y" && echo "Requested '$server_config'." ;;
|
||||
f) show_facts="Y" ;;
|
||||
h) usage ;;
|
||||
*) echo "ERROR: Parameter $OPTARG was not recognized." && usage 1 ;;
|
||||
esac
|
||||
@@ -125,6 +127,11 @@ if [[ `which ansible > /dev/null; echo $?` != 0 ]]; then
|
||||
fi
|
||||
echo "Installed!"
|
||||
|
||||
if [[ "$show_facts" == "Y" ]]; then
|
||||
echo "Showing Ansible Facts"
|
||||
ansible localhost -m setup --connection=local
|
||||
fi
|
||||
|
||||
#echo "Adding Ansible Collections..."
|
||||
#ansible-galaxy collection install community.general
|
||||
#echo "Added!"
|
||||
|
||||
Reference in New Issue
Block a user