hagarakyo
@hagarakyo2058
Reviews Written
-
Average Rating
-
Posts
Q&A
ansible server์์ window๋ก ssh์ ์ํ์ธ์ ์ค๋ฅ๊ฐ ๋ฉ๋๋ค.
https://learn.microsoft.com/ko-kr/windows-server/administration/openssh/openssh_install_firstuse?tabs=powershell๋ฅผ ๋ฐ๋ผ์ window ssh ์๋ฒ ํด๋ผ์ด์ธํธ ์ค์นํ๊ณ ansinble-server์ ์๋์ฐ pc(์ฟ ๋ฒ๋คํฐ์ค ๋์๊ฐ host)์ python 3.9๋ก ์ค์นํด์คฌ๊ณ ,ansible-server์์ pip install pywinrm ์ค์นlinux์์ ssh-keygen ํ ๊ฒ ์๋์ฐ pc์ authorized_key์ ์ง์ ๋ณต์ฌํด์คฌ์https://github.com/AlbanAndrieu/ansible-windows/blob/master/files/ConfigureRemotingForAnsible.ps์์ ํ์ผ ์ง์ ๋ฐ์์ ํ์์์์ powershell.exe -ExecutionPolicy ByPass -File C:\Users\user\Downloads\ConfigureRemotingForAnsible.ps1ํ์์์์ ์คํansible-server์์ vi /ect/ansible/host[local] localhost [docker] 172.17.0.3 [windows] ๋ณธ์ธ ์ปดํจํฐ(์๋์ฐ) host pc์ ip์ ๋ ฅ [windows:vars] ansible_password='๋ณธ์ธ ์ปดํจํฐ((์๋์ฐ) host pc ๋น๋ฐ๋ฒํธ ์ ๋ ฅ' ansible_connection=winrm ansible_winrm_server_cert_validation=ignore ansible_user=user ansible_port=5986๋ฅผ ์์ฑํด์ ์ ์ฅ ansible windows -m win_ping -u userwin_ping์ผ๋ก ํ ํ ์คํธ ํ๋ฉด ์ ์ ๋์ํจ
- 0
- 2
- 267
Q&A
์ค์ต5 ์งํ์ ์ ํจ์ค์์ playbook์คํ ์ปค๋งจ๋ ์ถ๊ฐํ๊ณ ๋น๋ ์ ์ค๋ฅ
๊ทธ๋ฅ ansibleserver๋ฐ์ด๋ฒ๋ฆฌ๊ณ ๋ค์ ์ปจํ ์ด๋ ์์ฑํ ๋ -p 8081:8080 ์ค์ ํ๋ ๊ฒ ์ญ์ ํ๊ณ ๋ช ๋ น ๋๋ฆฌ๋๊น ๋๋ค์ฉ
- 0
- 3
- 252
Q&A
์ค์ต5 ์งํ์ ์ ํจ์ค์์ playbook์คํ ์ปค๋งจ๋ ์ถ๊ฐํ๊ณ ๋น๋ ์ ์ค๋ฅ
(์ฌ์ง)๋ฅผ ์ถ๊ฐํ๋๋ ๋น๋๊ฐ ๋๋ ๊ฒ ๊ฐ์๋ฐ ๋ฌด์จ ์์ธ ์ค๋ฅ ์๋์ง๋ฅผ ๋ชจ๋ฅด๊ฒ ๋ค์ ใ ใ
- 0
- 3
- 252




