Skip to content

Commit

Permalink
modify Ansible auth to default (#456)
Browse files Browse the repository at this point in the history
* modify ansible auth to default

* modify command list

* update

---------

Co-authored-by: Darren Tu <[email protected]>
  • Loading branch information
darrentu and Darren Tu authored Aug 7, 2024
1 parent d8ad9f2 commit e060fc5
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 51 deletions.
5 changes: 0 additions & 5 deletions linux/ansible/ansible
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-config
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-config "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-connection
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-connection "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-console
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-console "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-doc
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-doc "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-galaxy
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-galaxy "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-inventory
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-inventory "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-playbook
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-playbook "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-pull
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-pull "$@"
Expand Down
5 changes: 0 additions & 5 deletions linux/ansible/ansible-vault
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env bash

set -e
if [ -z "$MSI_ENDPOINT" ]; then
export ANSIBLE_AZURE_AUTH_SOURCE='cli'
else
export ANSIBLE_AZURE_AUTH_SOURCE='msi'
fi

source /opt/ansible/bin/activate
ansible-vault "$@"
Expand Down
2 changes: 1 addition & 1 deletion tests/command_list
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ elfedit
elif
else
emacs
emacs-29.3
emacs-29.4
emacsclient
enable
enc2xs
Expand Down

0 comments on commit e060fc5

Please sign in to comment.