terraform script add

This commit is contained in:
ByeonJungHun
2023-10-19 16:35:47 +09:00
commit 65f305d107
947 changed files with 81629 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
---
- name: create user
user:
name: exemdev2
state: present
groups: sudo
shell: /bin/bash
password: "{{ 'saasadmin1234' | password_hash('sha512') }}"
- name: key add
authorized_key:
user: exemdev2
state: present
key: "{{ lookup('file', lookup('env','HOME') + '/.ssh/id_rsa.pub') }}"
manage_dir: False