Compare commits
No commits in common. "a7d9e1b2700b0da111b968828057e408a87b9732" and "58dcf4694f3825ff37756790ca05a21a25a1d218" have entirely different histories.
a7d9e1b270
...
58dcf4694f
@ -11,8 +11,7 @@ poetry run ansible-playbook ...
|
||||
|
||||
## Boostraping remote system for management:
|
||||
|
||||
1. Install a supported operating system: [Rocky Linux](https://rockylinux.org),
|
||||
[Fedora](https://getfedora.org)
|
||||
1. Install a supported operating system: [Rocky Linux](https://rockylinux.org)
|
||||
2. During installation create a user named `ansible` with any password
|
||||
3. After installation copy SSH key to the `ansible` user
|
||||
4. Enable password-less sudo access for the `ansible` user with this command:
|
||||
|
@ -10,9 +10,7 @@ export PROJECTS_DIR="$HOME/Documents/projects"
|
||||
|
||||
function gg() {
|
||||
cd "$PROJECTS_DIR/$1";
|
||||
if [ -f "$PROJECTS_DIR/$1/ansible.cfg" ]; then
|
||||
ANSIBLE_CONFIG="$PROJECTS_DIR/$1/ansible.cfg" ANSIBLE_COLLECTIONS_DIR="$PROJECTS_DIR/$1/.ansible" poetry shell;
|
||||
elif [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; then
|
||||
if [ -f "$PROJECTS_DIR/$1/pyproject.toml" ]; then
|
||||
poetry shell;
|
||||
fi
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 243 KiB |
@ -20,7 +20,7 @@
|
||||
- name: Configure bash completions
|
||||
become: true
|
||||
ansible.builtin.blockinfile:
|
||||
path: ~{{ item }}/.config/bash_completions
|
||||
path: ~{{ item.0 }}/.config/bash_completions
|
||||
create: true
|
||||
block: >-
|
||||
function _gg_completion() {
|
||||
@ -30,7 +30,7 @@
|
||||
|
||||
complete -F _gg_completion gg
|
||||
owner: "{{ ansible_user }}"
|
||||
group: "{{ item }}"
|
||||
group: "{{ item.0 }}"
|
||||
mode: 0664
|
||||
loop: "{{ _local_human_users }}"
|
||||
|
||||
|
Reference in New Issue
Block a user