This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m@EC2AMAZ-TFFLO06:~$ which python | |
m@EC2AMAZ-TFFLO06:~$ which python3 | |
/usr/bin/python3 | |
m@EC2AMAZ-TFFLO06:~$ sudo ln -s /usr/bin/python3 /usr/bin/python | |
[sudo] password for m: | |
m@EC2AMAZ-TFFLO06:~$ aws configure | |
-bash: /mnt/c/Users/Administrator/AppData/Local/Programs/Python/Python38/Scripts/aws: c:\users\administrator\appdata\local\programs\python\python38\python.exe^M: bad interpreter: No such file or directory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook rotate_aws_1password.yml | |
AWS Profile? [test]: prod | |
onepassword item? [aws prod]: | |
PLAY [localhost] **************************************************************************************************************************************** | |
TASK [update iam password] ****************************************************************************************************************************** | |
changed: [localhost] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ansible-playbook rotate_aws_keys.yml | |
AWS Profile? [test]: | |
PLAY [localhost] **************************************************************************************************************************************** | |
TASK [Get the current caller identity facts] ************************************************************************************************************ | |
ok: [localhost] | |
TASK [read current credentials] ************************************************************************************************************************* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: False | |
vars: | |
duration: 7200 | |
vars_prompt: | |
- name: TOTP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"login": "myuser", | |
"site": "aws-123456789", | |
"lowercase": true, | |
"uppercase": true, | |
"symbols": true, | |
"numbers": true, | |
"counter": 20191201, | |
"length": 32 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=NFS-Ganesha file server | |
Documentation=http://github.com/nfs-ganesha/nfs-ganesha/wiki | |
After=rpcbind.service nfs-ganesha-lock.service | |
Wants=rpcbind.service nfs-ganesha-lock.service | |
Conflicts=nfs.target | |
After=nfs-ganesha-config.service | |
Wants=nfs-ganesha-config.service |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling mdbook v0.3.5 | |
error[E0658]: use of unstable library feature 'range_contains': recently added as per RFC (see issue #32311) | |
--> /root/.cargo/registry/src/github.com-1ecc6299db9ec823/mdbook-0.3.5/src/utils/string.rs:66:19 | |
| | |
66 | if !range.contains(&index) { | |
| ^^^^^^^^ | |
error: aborting due to previous error | |
For more information about this error, try `rustc --explain E0658`. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[m@markus-pc .local]$ grep print ./lib/python3.7/site-packages/ansible/module_utils/aws/elbv2.py | |
print("modified_rule:") | |
print(new_rule['Actions']) | |
print("modified_rule:") | |
print(new_rule['Actions']) | |
print("modified_rule:") | |
print(new_rule['Actions']) | |
[m@markus-pc .local]$ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- module_utils/aws/elbv2.py 2019-11-22 11:47:07.809636272 +0100 | |
+++ /tmp/elbv2.py.2.9.1 2019-11-22 10:26:21.923061699 +0100 | |
@@ -713,7 +713,8 @@ | |
for current_condition in current_conditions: | |
if current_condition.get('SourceIpConfig'): | |
- if current_condition['Field'] == condition['Field'] and current_condition['SourceIpConfig']['Values'][0] == condition['SourceIpConfig']['Values'][0]: | |
+ if (current_condition['Field'] == condition['Field'] and | |
+ current_condition['SourceIpConfig']['Values'][0] == condition['SourceIpConfig']['Values'][0]): | |
condition_found = True |