# learn_frontend **Repository Path**: wkisme/learn_frontend ## Basic Information - **Project Name**: learn_frontend - **Description**: some practice when i learn frontend - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-24 - **Last Updated**: 2022-07-15 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This project is constructed after finishing these tutorials. Respected are: html tutorial, css tutorial by Mozilla Developer Network(MDN). how to make a website by CodeAcademy https://developer.mozilla.org/en-US/docs/Learn/HTML/Introduction_to_HTML https://developer.mozilla.org/en-US/docs/Learn/CSS/First_steps/How_CSS_works https://www.codecademy.com/learn/make-a-website https://www.w3schools.com/js/ In this link, i'll do some js interactive exercises. *************************************************************************************** - hosts: localhost tasks: - name: Test that my hello_world module works hello_world: register: result - debug: var=result #!/usr/bin/python from ansible.module_utils.basic import * def main(): module = AnsibleModule(argument_spec={}) theReturnValue = {"hello": "world"} module.exit_json(changed=False, meta=theReturnValue) if __name__ == '__main__': main() ****************************************************************************************** - hosts: localhost tasks: - name: Test that my change_version module works version_change: version_name: "Before" version_no: 1.1.1 unchanged_value: "This will pass through" register: result - debug: var=result #!/usr/bin/python from ansible.module_utils.basic import * def main(): fields = { "version_no": {"default": True, "type": "str"}, "version_name": {"default": True, "type": "str"}, "unchanged_value": {"default": True, "type": "str"} } module = AnsibleModule(argument_spec=fields) # change the name module.params.update({"version_name": "After"}) # bump minor and patch version mylist = module.params["version_no"].split('.') mylist[2] = str(int(mylist[2]) + 2) mylist[1] = str(int(mylist[1]) + 1) mystr= '.'.join(mylist) module.params.update({"version_no": mystr}) module.exit_json(changed=True, meta=module.params) if __name__ == '__main__': main()