Fixed a couple of bugs in the TUI like not properly fetching the size of the vpc_arr, or removing the prefix/suffix markers for Ansible's blockinfile from the SSH key

This commit is contained in:
hamilcarBarca17
2023-08-03 10:51:34 -06:00
parent 033155f3e2
commit 7dda9b962d
2 changed files with 17 additions and 10 deletions
+7
View File
@@ -21,6 +21,13 @@
blockinfile:
path: "{{ ansible_env.HOME }}/.ssh/{{ ssh_key_name }}.pem"
block: "{{ aws_key_pair.key.private_key }}"
marker: ""
- name: Remove the blank lines from blockinfile module
lineinfile:
path: "{{ ansible_env.HOME }}/.ssh/{{ ssh_key_name }}.pem"
state: absent
regexp: '^$'
when:
- "'destroy' not in ansible_run_tags"