Minor Enhancements (#33)
* Add some nice to have packages in case custom or HW kernels go bad. * Updates to the usage. * Add a comment for the closure of the program.
This commit is contained in:
parent
e39aeb20e7
commit
c9abdaf8a2
8
setup.sh
8
setup.sh
@ -13,14 +13,18 @@ BRANCH="main"
|
|||||||
# Accepts 1 parameter, it is used as the exit status.
|
# Accepts 1 parameter, it is used as the exit status.
|
||||||
function usage {
|
function usage {
|
||||||
cat <<- EOF
|
cat <<- EOF
|
||||||
|
|
||||||
$PROG [-l] [-b branch_name] [-h]
|
$PROG [-l] [-b branch_name] [-h]
|
||||||
Program to initialize synchronization with Hyperling's Ansible configuration.
|
Program to initialize synchronization with Hyperling's Ansible configuration.
|
||||||
$URL
|
$URL
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
-l : Run the local version associated with this setup.sh.
|
-l : Run the local playbook associated with this $PROG.
|
||||||
|
This is helpful for development or just saving bandwidth.
|
||||||
|
It also provides prettier colors than the plaintext from ansible-pull. ;)
|
||||||
-b branch_name: Download and run a specific branch. Default is $BRANCH.
|
-b branch_name: Download and run a specific branch. Default is $BRANCH.
|
||||||
-h : Display this help text
|
-h : Display this help text
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
exit $1
|
exit $1
|
||||||
}
|
}
|
||||||
@ -107,6 +111,8 @@ echo "Mounted!"
|
|||||||
|
|
||||||
echo "Don't forget to set any new users' passwords!"
|
echo "Don't forget to set any new users' passwords!"
|
||||||
|
|
||||||
|
## Finish ##
|
||||||
|
|
||||||
echo "We're done!"
|
echo "We're done!"
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
@ -61,7 +61,18 @@
|
|||||||
when: branch == "dev"
|
when: branch == "dev"
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- name: General | Software | Services | Install CROND (Looking at you, Fedora+Mobian)
|
- name: General | Software | Packages | Add Generic Kernel + Tools (Ubuntu)
|
||||||
|
package:
|
||||||
|
name:
|
||||||
|
- linux-image-generic
|
||||||
|
- linux-headers-generic
|
||||||
|
- linux-tools-generic
|
||||||
|
- linux-tools-common
|
||||||
|
state: present
|
||||||
|
when: ansible_distribution == "Ubuntu"
|
||||||
|
ignore_errors: yes
|
||||||
|
|
||||||
|
- name: General | Software | Services | Install CROND (Looking at you, Fedora)
|
||||||
package:
|
package:
|
||||||
name: "{{ cron }}"
|
name: "{{ cron }}"
|
||||||
state: present
|
state: present
|
||||||
|
Loading…
x
Reference in New Issue
Block a user