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