Skip to content

slydor/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ansible

Quick setup

  • Full
ANSIBLE_ASK_VAULT_PASS=True ansible-pull --url https://github.com/slydor/ansible.git --ask-become-pass
  • Just node
ansible-pull --url https://github.com/slydor/ansible.git --tags node
  • Example with ssh on specific branch dev
ANSIBLE_ASK_VAULT_PASS=True ansible-pull --url https://github.com/slydor/ansible.git --tags ssh --checkout dev
  • Setup FLS git config
ANSIBLE_ASK_VAULT_PASS=True ansible-pull --url https://github.com/slydor/ansible.git --tags git-fls

Tags

  • core requires --ask-become-pass
  • ssh
  • shell
  • git
  • git-personal
  • git-fls
  • docker requires --ask-become-pass
  • deno
  • node requires --ask-become-pass
  • rust
  • java
  • python requires --ask-become-pass
  • vscode requires --ask-become-pass
  • brave requires --ask-become-pass
  • dev requires --ask-become-pass

Development

  • Have Docker
  • Clone
  • Use VS Code with extension Dev Containers
  • In container, use:
ansible-playbook -t ssh local.yml --ask-vault-pass

Copy this repo

  • Clone/fork whatever
  • Create own SSH keys using your favorite key gen tool
  • Use ansible to encrypt both id_rsa and id_rsa.pub file. I.e. using this devcontainer, because it contains ansible:
ansible-vault encrypt .ssh/id_rsa*
  • Commit the vaulted files in the .ssh directory. Yes, it is fine to commit your private key this way. Vault uses AES256.
  • Create vars for git configuration. They are ansible var files in this layout: <key1>:<value1>\n<key2>:<value2>. In this specific part they contain user_name and user_email. Then vault it like it's hot.
printf 'user_name:"slydor"\nuser_email:"slydor@example.com"\n' > vars/personal-git.yml && ansible-vault encrypt vars/personal-git.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published