커스텀 모듈 - testing.py 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 #!/bin/env python from ansible.module_utils.basic import * import os, json import re, sys def firstProg(text): text1 = "Hello " + text return text1 if __name__ == '__main__': fields = { "yourName": {"required": True, "type": "str"} } module = AnsibleModule(argument_spec=fields) yourName = os.path.expanduser(module.params['yourName'..
신뢰성 있고 빠르게 Nginx 설정 파일을 json 형식 데이터로 파싱 하고, 반대로 빌드할 수 있는, Python 모듈 crossplane을 소개합니다. Nginx text 설정을 json 형식 데이터로 변환 crossplane parse --indent 4 --include-comments /home/apps/nginx/conf/nginx.conf > nginx.conf.json Nginx Json 형식 설정 데이터를 text 설정으로 변환 crossplane build --stdout nginx.conf.json nginxinc/crossplane Quick and reliable way to convert NGINX configurations into JSON and back. - nginxinc..
1 2 3 4 import-module WebAdministration C:\Windows\System32\inetsrv\appcmd.exe clear config "Default Web Site" -section:system.webServer/security/ipSecurity /"[ipAddress='0.0.0.0',subnetMask='0',allowed='False']" /commit:apphost C:\Windows\System32\inetsrv\appcmd.exe set config "Default Web Site" -section:system.webServer/security/ipSecurity /+"[ipAddress='허용아이피',allowed='true']" /commit:apphost..
- Total
- Today
- Yesterday
- 예제
- limits
- MariaDB
- monitoring
- deview
- RESTful
- 명령어
- Windows
- Module
- command
- Linux
- Ansible
- code
- apache
- 이슈처리
- httpd
- mysql
- check
- example
- 외부링크
- PowerShell
- Web
- error
- client
- Python
- File
- 코드
- configuration
- 번역
- engineering
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |