본문 바로가기

분류 전체보기222

[Ansible] windows 파일배포 & 압축 해제 윈도우 시스템에 zip파일을 배포 후 압축 해제 함 --- - hosts: all vars: ansible_port: 5985 ansible_connection: winrm ansible_winrm_server_cert_validation: ignore ansible_winrm_scheme: http ansible_winrm_transport: basic tasks: - name: deploy disk mount file win_copy: src: '/data/ansible/file/Disk_Part.ps1' dest: 'c:\Disk_Part.ps1' - name: run powershell win_shell: 'powershell.exe -ExecutionPolicy Bypass -File c:\Di.. 2022. 7. 27.
[powershell] windows 계정 이름 rename 윈도우 계정 이름 rename Rename-LocalUser -Name 'administrator' -NewName '바꿀계정' 2022. 7. 26.
[powershell] 파워쉘 윈도우 계정 패스워드 변경 기존에 있는 계정의 패스워드를 변경할 수 있다. $PASSWORD= ConvertTo-SecureString –AsPlainText -Force -String qlalfqjsgh123! Set-LocalUser -Name "seotest" -Password $PASSWORD powershell windows user password change 파워쉘 패스워드 변경 2022. 7. 26.
[Windows Server]The password does not meet the password policy requirements. Check the minimum password length, password complexity and password history requirements 패스워드가 윈도우 서버에 설정된 패스워드 정책에 대해 만족하지 못해서 발생되는 에러임 확인방법 실행 > secpol.msc > Account policy > password policy에서 계정 패스워드에 대한 정책을 확인할 수 있다. 윈도우 패스워드 정책 windows password 정책 로컬보안정책 secpol.msc 2022. 7. 26.
[Ansible] ansible apt update playbook ansible로 우분투 패키지 설치전 apt update를 수행하고 싶을때 아래와 같이 수행한다. --- - name: install amsclient hosts: all become: yes vars: ansible_become_password: "{{ sudopasswd }}" tasks: - name: apt install ipa-client apt: update_cache: yes force_apt_get: yes cache_valid_time: 3600 앤서블 우분투 apt 업데이트 앤서블 ubuntu apt udpate ansible ubuntu apt udpate 2022. 7. 20.
반응형