This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: add td-agent repository | |
| copy: src=td.repo dest=/etc/yum.repos.d/td.repo | |
| - name: install td-agent | |
| yum: name=td-agent state=present | |
| - name: install fluent plugins use fluent-gem | |
| gem: name=fluent-plugin-{{ item }} state=present executable=/usr/lib64/fluent/ruby/bin/fluent-gem | |
| with_items: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import crypt | |
| with open("pwdstringlist.txt") as f: | |
| for line in f: | |
| print crypt.crypt(line.rstrip(), "$1$SomeSalt$") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from passlib.hash import sha512_crypt | |
| with open("pwdstringlist.txt") as f: | |
| for line in f: | |
| print sha512_crypt.encrypt(line.rstrip()) |